Skip to content

Commit 909587f

Browse files
ashbp1c2u
authored andcommitted
Update pytest to latest version
1 parent 512ff6b commit 909587f

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

requirements_dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pytest==5.4.3
1+
pytest~=6.0
22
pytest-flake8
3-
pytest-cov==2.5.1
3+
pytest-cov~=2.12
44
falcon==3.0.0
55
flask
66
django==2.2.20

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ install_requires =
3434
parse
3535
more-itertools
3636
tests_require =
37-
pytest>=5.0.0
37+
pytest~=6.0
3838
pytest-flake8
39-
pytest-cov
39+
pytest-cov~=2.12
4040
falcon
4141
flask
4242
responses

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
import sys
3+
4+
5+
sys.path.insert(
6+
0,
7+
os.path.abspath(os.path.join(os.path.dirname(__file__), '..')),
8+
)

tests/integration/validation/test_read_only_write_only.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def request_validator(spec):
1919
return RequestValidator(spec)
2020

2121

22-
@pytest.fixture('class')
22+
@pytest.fixture(scope='class')
2323
def spec(factory):
2424
spec_dict = factory.spec_from_file("data/v3.0/read_only_write_only.yaml")
2525
return create_spec(spec_dict)

tests/integration/validation/test_security_override.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def request_validator(spec):
1313
return RequestValidator(spec)
1414

1515

16-
@pytest.fixture('class')
16+
@pytest.fixture(scope='class')
1717
def spec(factory):
1818
spec_dict = factory.spec_from_file("data/v3.0/security_override.yaml")
1919
return create_spec(spec_dict)

0 commit comments

Comments
 (0)