Added additional checks to the meeting_session_video_url api test.
- Legacy-Id: 15377
This commit is contained in:
parent
ef80b072d4
commit
65fc1f8e0f
|
@ -114,9 +114,18 @@ class CustomApiTestCase(TestCase):
|
|||
'item': 'foo', 'url': video, })
|
||||
self.assertContains(r, "Expected a numeric value for 'item', found 'foo'", status_code=400)
|
||||
|
||||
r = self.client.post(url, {'apikey': apikey.hash(), 'meeting': meeting.number, 'group': group.acronym,
|
||||
'item': '1', 'url': video+'/rum', })
|
||||
self.assertContains(r, "Done", status_code=200)
|
||||
|
||||
r = self.client.post(url, {'apikey': apikey.hash(), 'meeting': meeting.number, 'group': group.acronym,
|
||||
'item': '1', 'url': video+'/rum', })
|
||||
self.assertContains(r, "URL is the same", status_code=400)
|
||||
|
||||
r = self.client.post(url, {'apikey': apikey.hash(), 'meeting': meeting.number, 'group': group.acronym,
|
||||
'item': '1', 'url': video, })
|
||||
self.assertContains(r, "Done", status_code=200)
|
||||
|
||||
recordings = session.recordings()
|
||||
self.assertEqual(len(recordings), 1)
|
||||
doc = recordings[0]
|
||||
|
|
Loading…
Reference in a new issue