From 41856322f8b0285b21f9a030b0a19e09786587aa Mon Sep 17 00:00:00 2001 From: Joshua Burman Date: Thu, 14 Apr 2022 23:54:10 -0400 Subject: [PATCH] test framework and example test added --- .docker-compose/Dockerfile | 1 + Dockerfile | 1 + app/test/test_example.py | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 app/test/test_example.py diff --git a/.docker-compose/Dockerfile b/.docker-compose/Dockerfile index b8715c1..65e1df4 100644 --- a/.docker-compose/Dockerfile +++ b/.docker-compose/Dockerfile @@ -7,6 +7,7 @@ RUN python -m pip install pydantic RUN python -m pip install daemonize RUN python -m pip install sqspy RUN python -m pip install -U pytest +RUN python -m pip install pytest-spec RUN mkdir /app WORKDIR /app diff --git a/Dockerfile b/Dockerfile index c41c12d..cbdd950 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN python -m pip install pydantic RUN python -m pip install daemonize RUN python -m pip install sqspy RUN python -m pip install -U pytest +RUN python -m pip install pytest-spec RUN mkdir /app WORKDIR /app diff --git a/app/test/test_example.py b/app/test/test_example.py new file mode 100644 index 0000000..443721e --- /dev/null +++ b/app/test/test_example.py @@ -0,0 +1,7 @@ +# content of example.py +def func(x): + return x + 1 + + +def test_answer(): + assert func(3) == 5 \ No newline at end of file