Prepare pytest for end-to-end testing
This commit is contained in:
parent
2bbb594d62
commit
539a983505
3 changed files with 5 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
|
||||||
|
|
|
@ -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
2
tests/conftest.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
def pytest_configure(config):
|
||||||
|
config.addinivalue_line("markers", "e2e: mark as end to end test.")
|
Loading…
Reference in a new issue