Skip to content

Commit

Permalink
test: fix test_api_upload_bluesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards committed Jan 21, 2025
1 parent 3ec9422 commit 759c86c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions ietf/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,18 +600,6 @@ def test_api_upload_bluesheet(self):
r = self.client.post(url, {"apikey": apikey.hash(), "session_id": session.pk})
self.assertContains(r, "Missing bluesheet parameter", status_code=400)

r = self.client.post(
url,
{
"apikey": apikey.hash(),
"meeting": meeting.number,
"group": group.acronym,
"item": "1",
"bluesheet": "foobar",
},
)
self.assertContains(r, "Invalid json value: 'foobar'", status_code=400)

bad_session_pk = int(Session.objects.order_by("-pk").first().pk) + 1
r = self.client.post(
url,
Expand Down Expand Up @@ -650,9 +638,7 @@ def test_api_upload_bluesheet(self):
url,
{
"apikey": apikey.hash(),
"meeting": meeting.number,
"group": group.acronym,
"item": "1",
"session_id": session.pk,
"bluesheet": bluesheet,
},
)
Expand Down

0 comments on commit 759c86c

Please sign in to comment.