From e0cee159319200d45e48f2b6d1b7e7286b0ab0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20P=C5=82ocki?= Date: Mon, 8 Jan 2024 20:03:06 +0100 Subject: [PATCH] Add draft the e2e tests --- DEVELOPMENT.md | 10 +++++++++- e2e/test_sample.py | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 e2e/test_sample.py diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 156fd89..de56ee4 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -34,6 +34,14 @@ After installing the package you run tests python -m unittest discover -s tests -p *_test.py ``` +## E2e tests + +Running: + +```bash +pytest e2e +``` + ## Uploading the package into repository ```bash @@ -43,7 +51,7 @@ twine upload --repository pypi dist/* ## Black -Run code formatter: +Run code formatter: ```bash black . diff --git a/e2e/test_sample.py b/e2e/test_sample.py new file mode 100644 index 0000000..a923949 --- /dev/null +++ b/e2e/test_sample.py @@ -0,0 +1,23 @@ +def build_server(): + pass + + +def build_config(): + pass + + +def run_podcast_downloader(): + pass + + +def check_the_download_directory(): + pass + + +def test_answer(): + build_server() + build_config() + + run_podcast_downloader() + + check_the_download_directory()