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/ /data/
output.db /output.db
# Created by https://www.toptal.com/developers/gitignore/api/vim,linux,python,pandas # 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 # 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"]) @nox.session(python=["3.7", "3.8", "3.9"])
def tests(session): def tests(session):
args = session.posargs or ["--cov"] args = session.posargs or ["--cov", "-m", "not e2e"]
session.run("poetry", "install", external=True) session.run("poetry", "install", external=True)
session.run("pytest", *args) session.run("pytest", *args)
pass 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.")