for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# """kytos.utils.openapi tests."""
# import pathlib
# import unittest
# from unittest.mock import MagicMock, patch
# from kytos.utils.openapi import OpenAPI
# from kytos.utils.settings import SKEL_PATH
# class TestOpenAPI(unittest.TestCase):
# """Test the class OpenAPI."""
# def setUp(self):
# """Execute steps before each tests."""
# napp_path = pathlib.Path()
# tpl_path = SKEL_PATH / 'napp-structure/username/napp'
# self.openapi = OpenAPI(napp_path, tpl_path)
# @patch('builtins.open')
# def test_render_template(self, mock_open):
# self.openapi.render_template()
# read_file = MagicMock()
# read_file.read.return_value = "__version__ = '123'"
# mock_open.return_value = read_file