From 268f129d0068b6f8557cb1d8fb00f8d6da8f3ec4 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Wed, 18 Sep 2024 17:13:53 -0500 Subject: [PATCH] try 2 moving st2tests import earlier --- st2actions/tests/unit/test_policies.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/st2actions/tests/unit/test_policies.py b/st2actions/tests/unit/test_policies.py index 7002be9d53..99299b7118 100644 --- a/st2actions/tests/unit/test_policies.py +++ b/st2actions/tests/unit/test_policies.py @@ -21,6 +21,9 @@ from oslo_config import cfg +# This import must be early for import-time side-effects. +from st2tests import ExecutionDbTestCase + from st2common.constants import action as action_constants from st2common.models.api.action import ActionAPI from st2common.models.api.policy import PolicyTypeAPI, PolicyAPI @@ -31,7 +34,6 @@ from st2common.transport.liveaction import LiveActionPublisher from st2common.transport.publishers import CUDPublisher from st2common.bootstrap import runnersregistrar as runners_registrar -from st2tests.base import ExecutionDbTestCase from st2tests.fixtures.generic.fixture import PACK_NAME as PACK from st2tests.fixturesloader import FixturesLoader from st2tests.mocks.runners import runner