Skip to content

Commit

Permalink
Merge branch 'feature/add-support-for-xdist'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSuperiorStanislav committed May 22, 2024
2 parents 90a13ba + 8b2671a commit 74fae06
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions sns_sqs_communicator/testing/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,22 @@ def sqs_queue_name(
request: pytest.FixtureRequest,
) -> str:
"""Get queue name."""
return str(
request.config.inicfg.get(
"sns_sqs_queue_name",
"sns-sqs-communicator-queue",
worker_input = getattr(
request.config,
"workerinput",
{
"workerid": "",
},
)
return "-".join(
(
str(
request.config.inicfg.get(
"sns_sqs_queue_name",
"sns-sqs-communicator-queue",
),
),
worker_input["workerid"],
),
)

Expand Down Expand Up @@ -255,10 +267,22 @@ def sns_topic_name(
request: pytest.FixtureRequest,
) -> str:
"""Get queue name."""
return str(
request.config.inicfg.get(
"sns_sqs_topic_name",
"sns-sqs-communicator-topic",
worker_input = getattr(
request.config,
"workerinput",
{
"workerid": "",
},
)
return "-".join(
(
str(
request.config.inicfg.get(
"sns_sqs_topic_name",
"sns-sqs-communicator-topic",
),
),
worker_input["workerid"],
),
)

Expand Down

0 comments on commit 74fae06

Please sign in to comment.