test pipeline 4
This commit is contained in:
parent
a829588b51
commit
2e497c64b3
4
app.py
4
app.py
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@ -11,5 +9,3 @@ def hello():
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
from app import app
|
||||
import pytest
|
||||
import pytest # noqa: F401
|
||||
|
||||
|
||||
def test_hello():
|
||||
@ -7,4 +7,3 @@ def test_hello():
|
||||
response = client.get('/')
|
||||
assert response.data == b'Hello, DevOps!'
|
||||
assert response.status_code == 200
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user