| Conditions | 2 | 
| Total Lines | 12 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 1 | 
| CRAP Score | 3.6875 | 
| Changes | 0 | ||
| 1 | """Module to test the main napp file."""  | 
            ||
| 11 | 1 | def setup_method(self):  | 
            |
| 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 |