Replies: 1 comment 2 replies
-
Hi @Karan-TR, is that fixture session-scoped? If it is, You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using boto3==1.28.62, botocore==1.31.62, urllib3==1.26.15 and moto[all]==5.0.5
@pytest.fixture
def dynamodb_session():
with mock_aws():
dynamo_db = boto3.resource("dynamodb", region_name="us-east-1")
yield dynamo_db
I am using this session to create tables in multiple tests with same name.
I keep getting error saying Table already exists. It works if i explicitly delete the tables, but according to documentation Moto should handle deleting the resources after every test.
Beta Was this translation helpful? Give feedback.
All reactions