diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:13:21 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 01:13:21 +0530 |
commit | d29872548f7095ee629b92b4fe45caa99fc6ea34 (patch) | |
tree | 7645e8e5d29249b59ee8feeaec824e0553eefbe7 /app | |
parent | 2bcf8080767b4f095df7e988c7fef5b3a4637340 (diff) |
starting to create tests
Diffstat (limited to 'app')
-rw-r--r-- | app/tests/conftest.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/tests/conftest.py b/app/tests/conftest.py new file mode 100644 index 0000000..3842091 --- /dev/null +++ b/app/tests/conftest.py @@ -0,0 +1,11 @@ +import pytest + +from app import app as flask_app + +@pytest.fixture +def app(): + yield flask_app + +@pytest.fixture +def client(app): + return app.test_client()
\ No newline at end of file |