Prepare pytest for end-to-end testing

This commit is contained in:
Marty Oehme 2021-12-16 13:07:09 +01:00
parent 2bbb594d62
commit 539a983505
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
3 changed files with 5 additions and 3 deletions

4
.gitignore vendored
View File

@ -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

View File

@ -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

2
tests/conftest.py Normal file
View File

@ -0,0 +1,2 @@
def pytest_configure(config):
config.addinivalue_line("markers", "e2e: mark as end to end test.")