@@ -305,15 +305,12 @@ async def test_multiple_cbls_updates_concurrently_with_push(
305305 sg_doc = await cblpytest .sync_gateways [0 ].get_document (
306306 "posts" , "post_1000" , collection = "posts"
307307 )
308+ assert sg_doc is not None , "Document should exist in SGW"
308309 cbl1_doc = await db1 .get_document (DocumentEntry ("_default.posts" , "post_1000" ))
309310 cbl2_doc = await db2 .get_document (DocumentEntry ("_default.posts" , "post_1000" ))
310311 cbl3_doc = await db3 .get_document (DocumentEntry ("_default.posts" , "post_1000" ))
311312 assert (
312- sg_doc is not None
313- and cbl1_doc is not None
314- and cbl2_doc is not None
315- and cbl3_doc is not None
316- and sg_doc .body .get ("title" )
313+ sg_doc .body .get ("title" )
317314 == cbl1_doc .body .get ("title" )
318315 == cbl2_doc .body .get ("title" )
319316 == cbl3_doc .body .get ("title" )
@@ -501,12 +498,9 @@ async def test_multiple_cbls_updates_concurrently_with_pull(
501498 sg_doc = await cblpytest .sync_gateways [0 ].get_document (
502499 "posts" , "post_1000" , collection = "posts"
503500 )
501+ assert sg_doc is not None , "Document should exist in SGW"
504502 assert (
505- sg_doc is not None
506- and cbl1_doc is not None
507- and cbl2_doc is not None
508- and cbl3_doc is not None
509- and cbl1_doc .body .get ("title" )
503+ cbl1_doc .body .get ("title" )
510504 == cbl2_doc .body .get ("title" )
511505 == cbl3_doc .body .get ("title" )
512506 == sg_doc .body .get ("title" )
@@ -550,12 +544,9 @@ async def test_multiple_cbls_updates_concurrently_with_pull(
550544 sg_doc = await cblpytest .sync_gateways [0 ].get_document (
551545 "posts" , "post_1000" , collection = "posts"
552546 )
547+ assert sg_doc is not None , "Document should exist in SGW"
553548 assert (
554- sg_doc is not None
555- and cbl1_doc is not None
556- and cbl2_doc is not None
557- and cbl3_doc is not None
558- and cbl1_doc .body .get ("title" )
549+ cbl1_doc .body .get ("title" )
559550 == cbl2_doc .body .get ("title" )
560551 == cbl3_doc .body .get ("title" )
561552 == sg_doc .body .get ("title" )
0 commit comments