test framework and example test added
This commit is contained in:
parent
4c4a447afe
commit
41856322f8
@ -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
|
||||
|
@ -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
|
||||
|
7
app/test/test_example.py
Normal file
7
app/test/test_example.py
Normal file
@ -0,0 +1,7 @@
|
||||
# content of example.py
|
||||
def func(x):
|
||||
return x + 1
|
||||
|
||||
|
||||
def test_answer():
|
||||
assert func(3) == 5
|
Loading…
x
Reference in New Issue
Block a user