fix(): fixed bugs with cache invalidation, notifications and guardrails
This commit is contained in:
@@ -159,3 +159,14 @@ class ExperimentReportAPITest(TestCase):
|
||||
HTTP_AUTHORIZATION=self.auth,
|
||||
)
|
||||
self.assertEqual(resp.status_code, 404)
|
||||
|
||||
def test_report_invalid_start_date_returns_422(self) -> None:
|
||||
resp = self.client.get(
|
||||
reverse(
|
||||
"api-1:get_experiment_report",
|
||||
args=[self.experiment.pk],
|
||||
),
|
||||
{"start_date": "not-a-date"},
|
||||
HTTP_AUTHORIZATION=self.auth,
|
||||
)
|
||||
self.assertEqual(resp.status_code, 422)
|
||||
|
||||
Reference in New Issue
Block a user