How to use list_origination_numbers method in localstack

Best Python code snippet using localstack_python

sns_fixtures.py

Source:sns_fixtures.py Github

copy

Full Screen

1import boto32import pytest3from moto import mock_sns4from tests.utils import random_str5@pytest.fixture6def gen_sns_client(aws_setup):7 with mock_sns():8 yield boto3.client("sns")9@pytest.fixture10def gen_sns_resource(aws_setup):11 with mock_sns():12 yield boto3.resource("sns")13# ============================14# PAGINATOR15# ============================16@pytest.fixture17def gen_list_endpoints_by_platform_application_paginator(gen_sns_client):18 return gen_sns_client.get_paginator("list_endpoints_by_platform_application")19@pytest.fixture20def gen_list_platform_applications_paginator(gen_sns_client):21 return gen_sns_client.get_paginator("list_platform_applications")22@pytest.fixture23def gen_list_subscriptions_paginator(gen_sns_client):24 return gen_sns_client.get_paginator("list_subscriptions")25@pytest.fixture26def gen_list_subscriptions_by_topic_paginator(gen_sns_client):27 return gen_sns_client.get_paginator("list_subscriptions_by_topic")28@pytest.fixture29def gen_list_topics_paginator(gen_sns_client):30 return gen_sns_client.get_paginator("list_topics")31@pytest.fixture32def gen_list_phone_numbers_opted_out_paginator(gen_sns_client):33 return gen_sns_client.get_paginator("list_phone_numbers_opted_out")34@pytest.fixture35def gen_list_origination_numbers_paginator(gen_sns_client):36 return gen_sns_client.get_paginator("list_origination_numbers")37@pytest.fixture38def gen_list_sms_sandbox_phone_numbers_paginator(gen_sns_client):39 return gen_sns_client.get_paginator("list_sms_sandbox_phone_numbers")40# ============================41# RESOURCES42# ============================43@pytest.fixture44def gen_platform_application(gen_sns_resource):45 return gen_sns_resource.PlatformApplication(random_str())46@pytest.fixture47def gen_platform_endpoint(gen_sns_resource):48 return gen_sns_resource.PlatformEndpoint(random_str())49@pytest.fixture50def gen_subscription(gen_sns_resource):51 return gen_sns_resource.Subscription(random_str())52@pytest.fixture53def gen_topic(gen_sns_resource):54 return gen_sns_resource.Topic(random_str())55# ============================56# COLLECTIONS57# ============================58@pytest.fixture59def gen_service_resource_platform_applications_collection(gen_sns_resource):60 return gen_sns_resource.platform_applications.all()61@pytest.fixture62def gen_service_resource_subscriptions_collection(gen_sns_resource):63 return gen_sns_resource.subscriptions.all()64@pytest.fixture65def gen_service_resource_topics_collection(gen_sns_resource):66 return gen_sns_resource.topics.all()67@pytest.fixture68def gen_platform_application_endpoints_collection(gen_platform_application):69 return gen_platform_application.endpoints.all()70@pytest.fixture71def gen_topic_subscriptions_collection(gen_topic):...

Full Screen

Full Screen

literals.pyi

Source:literals.pyi Github

copy

Full Screen

1"""2Type annotations for sns service literal definitions.3[Open documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_sns/literals.html)4Usage::5 ```python6 from mypy_boto3_sns.literals import LanguageCodeStringType7 data: LanguageCodeStringType = "de-DE"8 ```9"""10import sys11if sys.version_info >= (3, 8):12 from typing import Literal13else:14 from typing_extensions import Literal15__all__ = (16 "LanguageCodeStringType",17 "ListEndpointsByPlatformApplicationPaginatorName",18 "ListOriginationNumbersPaginatorName",19 "ListPhoneNumbersOptedOutPaginatorName",20 "ListPlatformApplicationsPaginatorName",21 "ListSMSSandboxPhoneNumbersPaginatorName",22 "ListSubscriptionsByTopicPaginatorName",23 "ListSubscriptionsPaginatorName",24 "ListTopicsPaginatorName",25 "NumberCapabilityType",26 "RouteTypeType",27 "SMSSandboxPhoneNumberVerificationStatusType",28)29LanguageCodeStringType = Literal[30 "de-DE",31 "en-GB",32 "en-US",33 "es-419",34 "es-ES",35 "fr-CA",36 "fr-FR",37 "it-IT",38 "ja-JP",39 "kr-KR",40 "pt-BR",41 "zh-CN",42 "zh-TW",43]44ListEndpointsByPlatformApplicationPaginatorName = Literal["list_endpoints_by_platform_application"]45ListOriginationNumbersPaginatorName = Literal["list_origination_numbers"]46ListPhoneNumbersOptedOutPaginatorName = Literal["list_phone_numbers_opted_out"]47ListPlatformApplicationsPaginatorName = Literal["list_platform_applications"]48ListSMSSandboxPhoneNumbersPaginatorName = Literal["list_sms_sandbox_phone_numbers"]49ListSubscriptionsByTopicPaginatorName = Literal["list_subscriptions_by_topic"]50ListSubscriptionsPaginatorName = Literal["list_subscriptions"]51ListTopicsPaginatorName = Literal["list_topics"]52NumberCapabilityType = Literal["MMS", "SMS", "VOICE"]53RouteTypeType = Literal["Premium", "Promotional", "Transactional"]...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful