Conditions | 2 |
Total Lines | 16 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Module to test the main napp file.""" |
||
12 | """Execute steps before each tests.""" |
||
13 | |||
14 | # The decorator run_on_thread is patched, so methods that listen |
||
15 | # for events do not run on threads while tested. |
||
16 | # Decorators have to be patched before the methods that are |
||
17 | # decorated with them are imported. |
||
18 | patch("kytos.core.helpers.run_on_thread", lambda x: x).start() |
||
19 | # pylint: disable=import-outside-toplevel |
||
20 | from napps.amlight.sdntrace.main import Main |
||
21 | |||
22 | self.napp = Main(get_controller_mock()) |
||
23 |