From e00f450d1fd00862adefa8cacf2a76386d992c54 Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Tue, 1 Oct 2024 13:55:37 -0400 Subject: [PATCH] test: cover case where test doesn't have any instances in backfill test flag bridges --- one_off_scripts/tests/test_backfill_test_flag_bridges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/one_off_scripts/tests/test_backfill_test_flag_bridges.py b/one_off_scripts/tests/test_backfill_test_flag_bridges.py index bec31fa8a..c98948eb4 100644 --- a/one_off_scripts/tests/test_backfill_test_flag_bridges.py +++ b/one_off_scripts/tests/test_backfill_test_flag_bridges.py @@ -29,6 +29,8 @@ def setup_tests(transactional_db): upload_2.flags.set([flag_3]) test_instance_2 = TestInstanceFactory(test=test_2, upload=upload_2) + test_3 = TestFactory(repository_id=repo.repoid) + @pytest.mark.django_db(transaction=True) def test_it_backfills_test_flag_bridges(setup_tests):