From c7f6bdef0a9427f479b0db806423e8d2d3782bb5 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Sat, 20 Jul 2024 13:02:32 -0700 Subject: [PATCH] test: test missing file --- ietf/meeting/tests_views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ietf/meeting/tests_views.py b/ietf/meeting/tests_views.py index d783ed9c75..db62fe6204 100644 --- a/ietf/meeting/tests_views.py +++ b/ietf/meeting/tests_views.py @@ -6246,6 +6246,12 @@ def test_upload_minutes_agenda(self): q = PyQuery(r.content) self.assertTrue(q('form input[type="checkbox"]')) + # test not submitting a file + r = self.client.post(url, dict(submission_method="upload")) + self.assertEqual(r.status_code, 200) + q = PyQuery(r.content) + self.assertTrue(q("form .is-invalid")) + test_file = BytesIO(b'this is some text for a test') test_file.name = "not_really.json" r = self.client.post(url,dict(submission_method="upload",file=test_file))