Skip to content

Commit e3f09b0

Browse files
committed
Mark network tests
1 parent aa09615 commit e3f09b0

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

tests/test_glob_osn.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,21 @@
33
44
These tests hit the USGS OSN public endpoint and require network access.
55
6-
To run these tests, set the environment variable:
7-
RUN_REAL_WORLD_TESTS=1 uv run --all-groups pytest tests/test_real_world.py -v
6+
To run these tests:
7+
uv run --all-groups pytest tests/test_glob_osn.py -v --network
88
"""
99

1010
from __future__ import annotations
1111

12-
import os
13-
1412
import pytest
1513
import s3fs
1614

1715
from obspec_utils import glob
1816
from obstore.store import S3Store
1917

2018

21-
# Skip all tests in this module unless RUN_REAL_WORLD_TESTS is set
22-
pytestmark = pytest.mark.skipif(
23-
not os.environ.get("RUN_REAL_WORLD_TESTS"),
24-
reason="Set RUN_REAL_WORLD_TESTS=1 to run real-world S3 tests",
25-
)
19+
# Skip all tests in this module unless --network is passed
20+
pytestmark = pytest.mark.network
2621

2722

2823
STORAGE_ENDPOINT = "https://usgs.osn.mghpcc.org"

0 commit comments

Comments
 (0)