Completed
Pull Request — master (#277)
by Gleyberson
01:52
created

tests.unit.test_openapi   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 1
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
wmc 0
1
# """kytos.utils.openapi tests."""
2
# import pathlib
3
# import unittest
4
# from unittest.mock import MagicMock, patch
5
6
# from kytos.utils.openapi import OpenAPI
7
# from kytos.utils.settings import SKEL_PATH
8
9
10
# class TestOpenAPI(unittest.TestCase):
11
#     """Test the class OpenAPI."""
12
13
#     def setUp(self):
14
#         """Execute steps before each tests."""
15
#         napp_path = pathlib.Path()
16
#         tpl_path = SKEL_PATH / 'napp-structure/username/napp'
17
#         self.openapi = OpenAPI(napp_path, tpl_path)
18
19
#     @patch('builtins.open')
20
#     def test_render_template(self, mock_open):
21
#         self.openapi.render_template()
22
23
#         read_file = MagicMock()
24
#         read_file.read.return_value = "__version__ = '123'"
25
#         mock_open.return_value = read_file
26