Skip to content

Commit

Permalink
nox: force setup.cfg as the pytest config
Browse files Browse the repository at this point in the history
This was causing some errors in the integration tests.

pytest-dev/pytest-cov#237

Signed-off-by: Filipe Laíns <lains@archlinux.org>
  • Loading branch information
FFY00 committed Aug 5, 2020
1 parent ff74e9f commit 112ffbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Expand Up @@ -22,7 +22,7 @@ def test(session):

session.install('.[test]')

session.run('pytest', '--cov',
session.run('pytest', '--cov', '--cov-config', 'setup.cfg',
f'--cov-report=html:{htmlcov_output}',
f'--cov-report=xml:{xmlcov_output}',
'tests/', *session.posargs)
Expand All @@ -35,7 +35,7 @@ def integration(session):

session.install('.[test]')

session.run('pytest', '--cov',
session.run('pytest', '--cov', '--cov-config', 'setup.cfg',
f'--cov-report=html:{htmlcov_output}',
f'--cov-report=xml:{xmlcov_output}',
'--only-integration')

0 comments on commit 112ffbc

Please sign in to comment.