def test_topic_name(monkeypatch: Any) -> None: topic_name = AWSSNSSQSTransport.get_topic_name("test-topic", {}) assert topic_name == "test-topic" topic_name = AWSSNSSQSTransport.get_topic_name( "test-topic", {"options": { "aws_sns_sqs": { "topic_prefix": "prefix-" } }}) assert topic_name == "prefix-test-topic"
def test_topic_name(monkeypatch: Any) -> None: topic_name = AWSSNSSQSTransport.get_topic_name('test-topic', {}) assert topic_name == 'test-topic' topic_name = AWSSNSSQSTransport.get_topic_name( 'test-topic', {'options': { 'aws_sns_sqs': { 'topic_prefix': 'prefix-' } }}) assert topic_name == 'prefix-test-topic'
def test_topic_name(monkeypatch: Any) -> None: topic_name = AWSSNSSQSTransport.get_topic_name("test-topic", {}) assert topic_name == "test-topic"