Skip to content

Commit ec13f5f

Browse files
author
Jean Cochrane (Lead developer, DataMade)
committed
Fix tests by altering 'errors' kwarg in assert_outcomes() to match pytest 6.x API
1 parent e7047d1 commit ec13f5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def readme():
2121
'SQLAlchemy>=1.2.2',
2222
'Flask-SQLAlchemy>=2.3',
2323
'packaging>=14.1'],
24-
extras_require={'tests': ['pytest-postgresql>=2.4.0', 'psycopg2-binary']},
24+
extras_require={'tests': ['pytest-postgresql>=2.4.0', 'psycopg2-binary', 'pytest>=6.0.1']},
2525
classifiers=[
2626
'Development Status :: 4 - Beta',
2727
'Environment :: Plugins',

tests/test_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_missing_db_fixture(db_session):
130130
""")
131131

132132
result = testdir.runpytest()
133-
result.assert_outcomes(error=1)
133+
result.assert_outcomes(errors=1)
134134
result.stdout.fnmatch_lines([
135135
'*NotImplementedError: _db fixture not defined*'
136136
])

0 commit comments

Comments
 (0)