Skip to content
Snippets Groups Projects

Resolve "main app sollte auch unter /appname/,,, ereichbar sein"

Merged slobinger requested to merge 24-apppname-urlprefix-for-mainapp into master
1 file
+ 10
7
Compare changes
  • Side-by-side
  • Inline
+ 10
7
@@ -100,13 +100,16 @@ class CaseSAMSHubWithMainApp(unittest.TestCase):
@@ -100,13 +100,16 @@ class CaseSAMSHubWithMainApp(unittest.TestCase):
)
)
hub.flaskApp.config['DEBUG'] = True
hub.flaskApp.config['DEBUG'] = True
with hub.flaskApp.test_client(self) as client:
with hub.flaskApp.test_client(self) as client:
response = client.get('/')
for path in ('/', '/' + main_app + '/'):
self.assertIs(response.status_code, 200)
with self.subTest('check rootpath with content for ' + path):
self.assertEquals(response.data.decode('utf-8'), expected)
response = client.get(path)
response = client.get('/' + urls[1])
self.assertIs(response.status_code, 200)
self.assertIs(response.status_code, 200)
self.assertEquals(response.data.decode('utf-8'), expected)
response = client.get('/' + extra_app + '/' + urls[2])
for path in ('/' + urls[1], '/' + main_app + '/' + urls[1],
self.assertIs(response.status_code, 200)
'/' + extra_app + '/' + urls[2]):
 
with self.subTest('check status_code for ' + path):
 
response = client.get(path)
 
self.assertIs(response.status_code, 200)
class CaseSAMSHubInitExceptions(unittest.TestCase):
class CaseSAMSHubInitExceptions(unittest.TestCase):
Loading