Skip to content

Commit

Permalink
Merge branch 'new_report' into new_meas2
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Jan 17, 2024
2 parents b21da1c + 975ae9e commit 4c54837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/measurement/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def test_clean(self):

# But fails for the other two
self.model.report_type = ReportType.DAILY
with self.assertRaises(ValueError):
with self.assertRaises(ValidationError):
self.model.clean()

self.model.report_type = ReportType.MONTLY
with self.assertRaises(ValueError):
with self.assertRaises(ValidationError):
self.model.clean()

# We check 'used_for_monthly' compatibility
Expand All @@ -112,11 +112,11 @@ def test_clean(self):

# But not for the other two
self.model.report_type = ReportType.HOURLY
with self.assertRaises(ValueError):
with self.assertRaises(ValidationError):
self.model.clean()

self.model.report_type = ReportType.MONTLY
with self.assertRaises(ValueError):
with self.assertRaises(ValidationError):
self.model.clean()


Expand Down

0 comments on commit 4c54837

Please sign in to comment.