Best Python code snippet using localstack_python
fixtures.py
Source:fixtures.py
...1193 for role_name, policy_name in roles.items():1194 iam_client.delete_role_policy(RoleName=role_name, PolicyName=policy_name)1195 iam_client.delete_role(RoleName=role_name)1196@pytest.fixture1197def firehose_create_delivery_stream(firehose_client, wait_for_delivery_stream_ready):1198 delivery_streams = {}1199 def _create_delivery_stream(**kwargs):1200 if "DeliveryStreamName" not in kwargs:1201 kwargs["DeliveryStreamName"] = f"test-delivery-stream-{short_uid()}"1202 delivery_stream = firehose_client.create_delivery_stream(**kwargs)1203 delivery_streams.update({kwargs["DeliveryStreamName"]: delivery_stream})1204 wait_for_delivery_stream_ready(kwargs["DeliveryStreamName"])1205 return delivery_stream1206 yield _create_delivery_stream1207 for delivery_stream_name in delivery_streams.keys():1208 firehose_client.delete_delivery_stream(DeliveryStreamName=delivery_stream_name)1209@pytest.fixture1210def events_create_rule(events_client):1211 rules = []1212 def _create_rule(**kwargs):1213 rule_name = kwargs["Name"]...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!