Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ pylint:

pytest:
PYTHONDONTWRITEBYTECODE=1 pytest -v --color=yes


docker_build:
docker build -t $(IMAGE_URI) .

docker_run:
docker run -it -e PORT=8000 -p 8080:8000 $(IMAGE_URI)
2 changes: 1 addition & 1 deletion api/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@app.get('/')
def root():
response = {
'greeting': 'Servus, griaß di!', # This is a typical Bavarian greeting ;)
'greeting': 'Bonjour à tous et à toutes!', # This is a typical French greeting ;)
'timestamp': datetime.now()
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_api_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestApiRoot(unittest.TestCase):
def test_api_root(self):
# Adding a 15s sleep timer to ensure
# Adding a 15s sleep timer to ensure
# that the container has time to start up
time.sleep(15)

Expand Down
Loading