Skip to content

Commit c03a06c

Browse files
committed
tests mark network
1 parent 73236a7 commit c03a06c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ addopts = """
7676
--cov-report=term-missing
7777
--cov-report=xml
7878
"""
79+
markers = [
80+
"network: marks tests which do need network-enabled environment",
81+
]
7982

8083
[tool.black]
8184
line-length = 79

tests/integration/test_shortcuts.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def test_falied(self, factory, spec_file):
105105
validate_v30_spec(spec)
106106

107107

108+
@pytest.mark.network
108109
class TestValidatev2SpecUrl:
109110

110111
REMOTE_SOURCE_URL = (
@@ -134,7 +135,8 @@ def test_valid(self, spec_file):
134135
validate_spec_url_factory(openapi_v2_spec_validator)(spec_url)
135136

136137

137-
class TestValidatev30SpecUrl:
138+
@pytest.mark.network
139+
class TestRemoteValidatev30SpecUrl:
138140

139141
REMOTE_SOURCE_URL = (
140142
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/"

tests/integration/validation/test_validators.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def test_falied(self, factory, validator_v30, spec_file):
4040
validator_v30.validate(spec, spec_url=spec_url)
4141

4242

43+
@pytest.mark.network
4344
class TestRemoteOpenAPIv30Validator:
4445

4546
REMOTE_SOURCE_URL = (
@@ -67,6 +68,7 @@ def test_valid(self, factory, validator_v30, spec_file):
6768
return validator_v30.validate(spec, spec_url=spec_url)
6869

6970

71+
@pytest.mark.network
7072
class TestRemoteOpeAPIv31Validator:
7173

7274
REMOTE_SOURCE_URL = (

0 commit comments

Comments
 (0)