From 539a983505b456a757fa2b91696fb0b3e2b33a03 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 16 Dec 2021 13:07:09 +0100 Subject: [PATCH] Prepare pytest for end-to-end testing --- .gitignore | 4 ++-- noxfile.py | 2 +- tests/conftest.py | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tests/conftest.py diff --git a/.gitignore b/.gitignore index 7397c55..391abf2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -data/ -output.db +/data/ +/output.db # Created by https://www.toptal.com/developers/gitignore/api/vim,linux,python,pandas # Edit at https://www.toptal.com/developers/gitignore?templates=vim,linux,python,pandas diff --git a/noxfile.py b/noxfile.py index f056b7a..b5d7a12 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,7 +3,7 @@ import nox @nox.session(python=["3.7", "3.8", "3.9"]) def tests(session): - args = session.posargs or ["--cov"] + args = session.posargs or ["--cov", "-m", "not e2e"] session.run("poetry", "install", external=True) session.run("pytest", *args) pass diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..0f09c94 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,2 @@ +def pytest_configure(config): + config.addinivalue_line("markers", "e2e: mark as end to end test.")