File tree 1 file changed +1
-16
lines changed 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,6 @@ def test_api_upload_bluesheet(self):
560
560
recman = recmanrole .person
561
561
meeting = MeetingFactory (type_id = "ietf" )
562
562
session = SessionFactory (group__type_id = "wg" , meeting = meeting )
563
- group = session .group
564
563
apikey = PersonalApiKeyFactory (endpoint = url , person = recman )
565
564
566
565
people = [
@@ -600,18 +599,6 @@ def test_api_upload_bluesheet(self):
600
599
r = self .client .post (url , {"apikey" : apikey .hash (), "session_id" : session .pk })
601
600
self .assertContains (r , "Missing bluesheet parameter" , status_code = 400 )
602
601
603
- r = self .client .post (
604
- url ,
605
- {
606
- "apikey" : apikey .hash (),
607
- "meeting" : meeting .number ,
608
- "group" : group .acronym ,
609
- "item" : "1" ,
610
- "bluesheet" : "foobar" ,
611
- },
612
- )
613
- self .assertContains (r , "Invalid json value: 'foobar'" , status_code = 400 )
614
-
615
602
bad_session_pk = int (Session .objects .order_by ("-pk" ).first ().pk ) + 1
616
603
r = self .client .post (
617
604
url ,
@@ -650,9 +637,7 @@ def test_api_upload_bluesheet(self):
650
637
url ,
651
638
{
652
639
"apikey" : apikey .hash (),
653
- "meeting" : meeting .number ,
654
- "group" : group .acronym ,
655
- "item" : "1" ,
640
+ "session_id" : session .pk ,
656
641
"bluesheet" : bluesheet ,
657
642
},
658
643
)
You can’t perform that action at this time.
0 commit comments