Skip to content

Commit

Permalink
Full openaq v1 test suite only in 3.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Oct 26, 2023
1 parent a9e810b commit cb000b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_openaq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

from monetio import openaq

if sys.version_info < (3, 7):
pytest.skip("requires Python 3.7+", allow_module_level=True)

# openaq._URL_CAP_RANDOM_SAMPLE = True
openaq._URL_CAP = 4

Expand All @@ -13,7 +16,6 @@
FIRST_DAY = pd.date_range(start="2013-11-26", end="2013-11-27", freq="H")[:-1]


@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires Python 3.7+")
def test_openaq_first_date():
dates = FIRST_DAY
df = openaq.add_data(dates)
Expand Down

0 comments on commit cb000b5

Please sign in to comment.