Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sams-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coding-at-fu
sams-classes
Commits
a18a9f1a
Commit
a18a9f1a
authored
7 years ago
by
Sebastian Lobinger
Browse files
Options
Downloads
Patches
Plain Diff
modified test_hub_provides_apps_with_proxies to reflect issue
#29
parent
9461376b
No related branches found
No related tags found
1 merge request
!20
Resolve "Apps sollen mit Alias an Hub angemeldet werden können"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_sams_hub.py
+7
-5
7 additions, 5 deletions
test/test_sams_hub.py
with
7 additions
and
5 deletions
test/test_sams_hub.py
+
7
−
5
View file @
a18a9f1a
...
@@ -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
=
test
App
)
)
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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment