From e35596b6f26aa517204255ca0656fa188257a247 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Fri, 12 Jul 2019 14:07:00 -0400 Subject: [PATCH] Remove duplicated build refresh from tests Signed-off-by: Luiz Carvalho --- tests/test_scheduler/test_poller.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_scheduler/test_poller.py b/tests/test_scheduler/test_poller.py index 8e90a42d..4dbe66c7 100644 --- a/tests/test_scheduler/test_poller.py +++ b/tests/test_scheduler/test_poller.py @@ -87,7 +87,6 @@ class TestPoller: poller.poll() # Refresh our module_build object. - module_build = models.ModuleBuild.query.filter_by(id=3).one() db.session.refresh(module_build) # If fresh is set, we expect the poller to not touch the module build since it's been less @@ -143,7 +142,6 @@ class TestPoller: poller.poll() # Refresh our module_build object. - module_build = models.ModuleBuild.query.get(3) db.session.refresh(module_build) if expect_start_build_component: @@ -228,7 +226,6 @@ class TestPoller: poller.poll() # Refresh our module_build object. - module_build = models.ModuleBuild.query.filter_by(id=3).one() db.session.refresh(module_build) assert not koji_session.newRepo.called @@ -261,7 +258,6 @@ class TestPoller: poller.poll() # Refresh our module_build object. - module_build = models.ModuleBuild.query.filter_by(id=3).one() db.session.refresh(module_build) # Components should not be in building state