Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tung Nguyen
gitlab-k8s-python-demo
Commits
327e1dd2
Commit
327e1dd2
authored
May 28, 2019
by
Ijaz Ahmad
Browse files
Update app.py, test_app.py files
parent
0e70a965
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app.py
app.py
+1
-1
test_app.py
test_app.py
+1
-1
No files found.
app.py
View file @
327e1dd2
...
...
@@ -18,7 +18,7 @@ app = Flask('hello-gitlab')
@
app
.
route
(
'/wp/python-app'
)
def
hello
():
return
"Python on K8s!
\n
"
return
"Python
2.7
on K8s!
\n
"
if
__name__
==
'__main__'
:
app
.
run
(
host
=
'0.0.0.0'
,
port
=
8080
)
...
...
test_app.py
View file @
327e1dd2
...
...
@@ -18,7 +18,7 @@ from app import hello
class
TestHelloApp
(
unittest
.
TestCase
):
def
test_hello
(
self
):
self
.
assertEqual
(
hello
(),
"Python on K8s!
\n
"
)
self
.
assertEqual
(
hello
(),
"Python
2.7
on K8s!
\n
"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment