Skip to content

Commit 8864609

Browse files
committed
fix: small deprecations
1 parent 4926eb8 commit 8864609

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

hermes/io/tests/test_hydraulics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'data')
1212

1313

14+
@pytest.mark.usefixtures("prefect")
1415
class TestHydraulicsDataSource:
1516

1617
def test_get_catalog_from_file(self):

hermes/io/tests/test_seismicity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'data')
1111

1212

13+
@pytest.mark.usefixtures("prefect")
1314
class TestSeismicityDataSource:
1415

1516
def test_get_catalog_from_file(self):

hermes/schemas/project_schemas.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ class ForecastSeriesConfig(CreationInfoMixin):
6161
hydws_url: str | None = None
6262

6363
@model_validator(mode='after')
64-
@classmethod
65-
def validate_observation_window(cls, values):
66-
if values.observation_starttime and values.observation_window:
64+
def validate_observation_window(self):
65+
if self.observation_starttime and self.observation_window:
6766
raise ValueError("You can't set both observation_starttime "
6867
"and observation_window.")
69-
return values
68+
return self
7069

7170
@field_validator('bounding_polygon', mode='before')
7271
@classmethod

0 commit comments

Comments
 (0)