From 80d3adab982134d4acf7646d113cbe03436757f9 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:56:59 +0000 Subject: [PATCH] order fixtures --- brewtils/test/fixtures.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/brewtils/test/fixtures.py b/brewtils/test/fixtures.py index 11183db5..f7bb5d22 100644 --- a/brewtils/test/fixtures.py +++ b/brewtils/test/fixtures.py @@ -565,6 +565,23 @@ def bg_role(legacy_role_dict): return LegacyRole(**dict_copy) +@pytest.fixture +def replication_dict(ts_epoch): + """Replication as a dictionary.""" + return { + "id": "1234", + "replication_id": "89cd6a3a-e0e2-486b-b8e8-535d1893faf3", + "expires_at": ts_epoch, + } + + +@pytest.fixture +def bg_replication(replication_dict, ts_dt): + dict_copy = copy.deepcopy(replication_dict) + dict_copy["expires_at"] = ts_dt + return Replication(**dict_copy) + + @pytest.fixture def job_dict(ts_epoch, request_template_dict, date_trigger_dict, replication_dict): """A date job represented as a dictionary.""" @@ -941,20 +958,3 @@ def bg_topic(topic_dict, bg_subscriber): dict_copy = copy.deepcopy(topic_dict) dict_copy["subscribers"] = [bg_subscriber] return Topic(**dict_copy) - - -@pytest.fixture -def replication_dict(ts_epoch): - """Replication as a dictionary.""" - return { - "id": "1234", - "replication_id": "89cd6a3a-e0e2-486b-b8e8-535d1893faf3", - "expires_at": ts_epoch, - } - - -@pytest.fixture -def bg_replication(replication_dict, ts_dt): - dict_copy = copy.deepcopy(replication_dict) - dict_copy["expires_at"] = ts_dt - return Replication(**dict_copy)