From 8e2611e87373bad48d2f4b176e63970b257610a3 Mon Sep 17 00:00:00 2001 From: Alexander Dransfield Date: Wed, 25 Mar 2020 19:29:30 +0000 Subject: [PATCH] Moving files, adding testing library --- Dockerfile | 4 +++- Makefile | 6 ++++++ reminders.csv | 4 ---- app.py => src/app.py | 1 + database.py => src/database.py | 0 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 Makefile rename app.py => src/app.py (95%) rename database.py => src/database.py (100%) diff --git a/Dockerfile b/Dockerfile index b56756a4..32441325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,6 @@ FROM python:3.8 COPY . /app WORKDIR /app -CMD ["python", "/app/app.py"] +RUN pip install -U pytest + +CMD ["python", "/app/src/app.py"] diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..7e5ba032 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.PHONY: test + +default: test + +test: + PYTHONPATH=/app/tests pytest \ No newline at end of file diff --git a/reminders.csv b/reminders.csv index 11b6ba56..e69de29b 100644 --- a/reminders.csv +++ b/reminders.csv @@ -1,4 +0,0 @@ -reminder,due -Walk the dog,12/01/2020 15:00:00 -Practice programming,12/03/2020 20:00:00 -Grocery shopping,12/05/2020 12:00:00 diff --git a/app.py b/src/app.py similarity index 95% rename from app.py rename to src/app.py index 7b28765c..966b0125 100644 --- a/app.py +++ b/src/app.py @@ -15,6 +15,7 @@ def handle_input(input): def print_menu(): print() print('|--------------|') + print('| Pluralsight |') print('| Reminders |') print('| App |') print('|--------------|') diff --git a/database.py b/src/database.py similarity index 100% rename from database.py rename to src/database.py