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

modified test_hub_provides_apps_with_proxies to reflect issue #29

parent 9461376b
No related branches found
No related tags found
1 merge request!20Resolve "Apps sollen mit Alias an Hub angemeldet werden können"
...@@ -33,12 +33,14 @@ class CaseSAMSHubWithThreadedAPI(unittest.TestCase): ...@@ -33,12 +33,14 @@ class CaseSAMSHubWithThreadedAPI(unittest.TestCase):
self.hub.addApp( self.hub.addApp(
SAMSApp(name = 'test',manifest = manifest, langDict={'de':{}}) SAMSApp(name = 'test',manifest = manifest, langDict={'de':{}})
) )
self.hub.addApp( testApp = SAMSApp(name = 'test.app', manifest = manifest, langDict={'de':{}})
SAMSApp(name = 'test.app', manifest = manifest, langDict={'de':{}}) self.hub.addApp(app = testApp)
) self.hub.addApp(app = testApp, alias = 'test')
with self.hub.flaskApp.test_client() as client: with self.hub.flaskApp.test_client() as client:
self.assertIs(client.get(path='/api/hello').status_code, 200) for urlPrefix in ('', '/test.app', '/test'):
self.assertIs(client.get(path='/test.app/api/hello').status_code, 200) with self.subTest(urlPrefix):
self.assertIs(client.get(
path = urlPrefix + '/api/hello').status_code, 200)
class CaseSAMSHubWithMainApp(unittest.TestCase): class CaseSAMSHubWithMainApp(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment