Skip to content

Commit

Permalink
Revert wrong plugin names change in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aigarius authored Dec 7, 2019
1 parent d65834f commit c7eea51
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dltlyse/core/tests/test_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ def test_load_plugins(self):
obj = DLTAnalyser()
obj.load_plugins([])

self.assertIn("TimeLinePlugin", obj.show_plugins())
self.assertIn("HMIReadyPlugin", obj.show_plugins())
self.assertIn("ExtractFilesPlugin", obj.show_plugins())
self.assertIn("TestSysErrorPlugin", obj.show_plugins())

def test_load_plugins_specific(self):
"""Test specific plugin loading"""
obj = DLTAnalyser()
obj.load_plugins([], plugins=["TimeLinePlugin"])
obj.load_plugins([], plugins=["ExtractFilesPlugin"])

self.assertIn("TimeLinePlugin", obj.show_plugins())
self.assertNotIn("HMIReadyPlugin", obj.show_plugins())
self.assertIn("ExtractFilesPlugin", obj.show_plugins())
self.assertNotIn("TestSysErrorPlugin", obj.show_plugins())

def test_dont_load_manually_executed_plugins(self): # pylint: disable=invalid-name
"""Test that a manually-executed plugin isn't automatically loaded"""
Expand All @@ -44,10 +44,10 @@ def test_dont_load_manually_executed_plugins(self): # pylint: disable=invalid-n
def test_load_plugins_exclude(self):
"""Test blacklisting of plugin loading"""
obj = DLTAnalyser()
obj.load_plugins([], exclude=["TimeLinePlugin"])
obj.load_plugins([], exclude=["TestSysErrorPlugin"])

self.assertNotIn("TimeLinePlugin", obj.show_plugins())
self.assertIn("HMIReadyPlugin", obj.show_plugins())
self.assertIn("ExtractFilesPlugin", obj.show_plugins())
self.assertNotIn("TestSysErrorPlugin", obj.show_plugins())

def test_analyse_file_sanity(self):
"""Simulate test run of the dltlyse with invalid dlt trace files"""
Expand All @@ -63,7 +63,7 @@ def test_analyse_file_sanity(self):
file_empty = create_temp_dlt_file(empty=True)
file_valid = create_temp_dlt_file(stream=dlt_example_stream)

obj.load_plugins([], plugins=["TimeLinePlugin", "TestSysErrorPlugin"])
obj.load_plugins([], plugins=["TestSysErrorPlugin"])
obj.run_analyse([file_not_exist, file_empty, file_valid], xunit, True, False)

self.assertNotIn(file_valid, obj.file_exceptions)
Expand Down

0 comments on commit c7eea51

Please sign in to comment.