@@ -439,34 +439,33 @@ def test_ancestors_between(table_v2_with_extensive_snapshots: Table) -> None:
439439
440440
441441def test_is_ancestor_of (table_v2 : Table ) -> None :
442- snapshot_id = 3055729675574597004
443- ancestor_snapshot_id = 3051729675574597004
442+ snapshot_id , ancestor_snapshot_id = 3055729675574597004 , 3051729675574597004
444443
445444 assert is_ancestor_of (snapshot_id , ancestor_snapshot_id , table_v2 .metadata )
446445 assert not is_ancestor_of (ancestor_snapshot_id , snapshot_id , table_v2 .metadata )
447446
448447
449448def test_ancestors_between_ids (table_v2 : Table ) -> None :
450- snapshot_id = 3055729675574597004
451- ancestor_snapshot_id = 3051729675574597004
449+ snapshot_id , ancestor_snapshot_id = 3055729675574597004 , 3051729675574597004
452450
453451 result = list (ancestors_between_ids (ancestor_snapshot_id , snapshot_id , table_v2 .metadata ))
454452 ids = [ancestor .snapshot_id for ancestor in result ]
455453
456- # Exclusive-inclusive semantics mean just snapshot_id should be returned
454+ # Exclusive-inclusive semantics means just ' snapshot_id' should be returned
457455 assert ids == [snapshot_id ]
458456
459457
460458def test_ancestors_between_equal_ids (table_v2 : Table ) -> None :
461459 snapshot_id = 3055729675574597004
462460
463461 result = list (ancestors_between_ids (snapshot_id , snapshot_id , table_v2 .metadata ))
462+
463+ # Exclusive-inclusive semantics mean no ancestors should be returned
464464 assert result == []
465465
466466
467467def test_ancestors_between_ids_missing_from_snapshot (table_v2 : Table ) -> None :
468- snapshot_id = 3055729675574597004
469- ancestor_snapshot_id = 3051729675574597004
468+ snapshot_id , ancestor_snapshot_id = 3055729675574597004 , 3051729675574597004
470469
471470 result = list (
472471 ancestors_between_ids (
0 commit comments