Skip to content

Commit be522ab

Browse files
committed
updating test
1 parent 0780490 commit be522ab

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/test_session_creation.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ def test_create_always_archive_mode_session(self):
228228
)
229229

230230
session = self.opentok.create_session(
231-
media_mode=MediaModes.routed, archive_mode=ArchiveModes.always, archive_name='test_opentok_archive', archive_resolution='1920x1080'
231+
media_mode=MediaModes.routed,
232+
archive_mode=ArchiveModes.always,
233+
archive_name="test_opentok_archive",
234+
archive_resolution="1920x1080",
232235
)
233236

234237
validate_jwt_header(self, httpretty.last_request().headers[u("x-opentok-auth")])
@@ -238,6 +241,8 @@ def test_create_always_archive_mode_session(self):
238241
body = parse_qs(httpretty.last_request().body)
239242
expect(body).to(have_key(b("p2p.preference"), [b("disabled")]))
240243
expect(body).to(have_key(b("archiveMode"), [b("always")]))
244+
expect(body).to(have_key(b("archiveName"), [b("test_opentok_archive")]))
245+
expect(body).to(have_key(b("archiveResolution"), [b("1920x1080")]))
241246
expect(session).to(be_a(Session))
242247
expect(session).to(
243248
have_property(
@@ -265,28 +270,28 @@ def test_auto_archive_errors(self):
265270
self.opentok.create_session,
266271
media_mode=MediaModes.routed,
267272
archive_mode=ArchiveModes.manual,
268-
archive_name='my_archive',
273+
archive_name="my_archive",
269274
)
270275
self.assertRaises(
271276
OpenTokException,
272277
self.opentok.create_session,
273278
media_mode=MediaModes.routed,
274279
archive_mode=ArchiveModes.manual,
275-
archive_resolution='640x480'
280+
archive_resolution="640x480",
276281
)
277282
self.assertRaises(
278283
OpenTokException,
279284
self.opentok.create_session,
280285
media_mode=MediaModes.routed,
281286
archive_mode=ArchiveModes.always,
282-
archive_name='my_incredibly_long_name_that_is_definitely_going_to_be_over_the_80_character_limit_we_currently_impose'
287+
archive_name="my_incredibly_long_name_that_is_definitely_going_to_be_over_the_80_character_limit_we_currently_impose",
283288
)
284289
self.assertRaises(
285290
OpenTokException,
286291
self.opentok.create_session,
287292
media_mode=MediaModes.routed,
288293
archive_mode=ArchiveModes.always,
289-
archive_resolution='10x10'
294+
archive_resolution="10x10",
290295
)
291296

292297
@httpretty.activate
@@ -304,7 +309,7 @@ def test_create_session_with_e2ee(self):
304309
session = self.opentok.create_session(e2ee=True)
305310

306311
body = parse_qs(httpretty.last_request().body)
307-
expect(body).to(have_key(b("e2ee"), [b'True']))
312+
expect(body).to(have_key(b("e2ee"), [b"True"]))
308313
expect(session).to(be_a(Session))
309314
expect(session).to(
310315
have_property(

0 commit comments

Comments
 (0)