Skip to content
Snippets Groups Projects
Commit 24f86b7b authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update test_main_app in test_sams_hub.py to fix issue #12

the test now uses copy of main_app string in hub.config. This is
important to ensure the hub_class addApp method compares the string
value (not it's identity) of app.name to determine it is the main app.
parent a518e7b3
No related branches found
No related tags found
1 merge request!7Resolve "test_main_app sollte auch funktionieren wenn man die die namen test und test.app vertauscht"
...@@ -53,7 +53,7 @@ class CaseSAMSHubWithMainApp(unittest.TestCase): ...@@ -53,7 +53,7 @@ class CaseSAMSHubWithMainApp(unittest.TestCase):
with self.subTest(main_app = main_app, extra_app = extra_app): with self.subTest(main_app = main_app, extra_app = extra_app):
hub = SAMSHub( hub = SAMSHub(
name = 'test', name = 'test',
config = {'default_language': 'de', 'main_app' : main_app} config = {'default_language': 'de', 'main_app' : ''.join(main_app)}
) )
expected_names = [ expected_names = [
'Hauptanwendung Punkt 1', 'Hauptanwendung Punkt 2', 'Hauptanwendung Punkt 1', 'Hauptanwendung Punkt 2',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment