Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB: Use fixtures to create and clean up test tables #8747

Merged
merged 3 commits into from Jul 28, 2023

Conversation

viren-nadkarni
Copy link
Member

@viren-nadkarni viren-nadkarni commented Jul 26, 2023

This PR makes a small improvement to the DynamoDB test suite.

Test table names that were earlier decalared as constants are now converted to fixtures which do proper clean up after tests finish.

@viren-nadkarni viren-nadkarni self-assigned this Jul 26, 2023
@viren-nadkarni viren-nadkarni added the semver: patch Non-breaking changes which can be included in patch releases label Jul 26, 2023
@coveralls
Copy link

coveralls commented Jul 26, 2023

Coverage Status

coverage: 82.713% (+0.006%) from 82.707% when pulling 1a8154a on dynamodb-testing-fixtures into 6d9a689 on master.

@github-actions
Copy link

github-actions bot commented Jul 26, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 25m 13s ⏱️
2 275 tests 1 915 ✔️ 360 💤 0
2 276 runs  1 915 ✔️ 361 💤 0

Results for commit 1a8154a.

♻️ This comment has been updated with latest results.

@viren-nadkarni viren-nadkarni marked this pull request as ready for review July 26, 2023 11:52
Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM + small nit

"""
This fixture returns a DynamoDB table for testing.
"""
table_name = "ddb-test-table"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
table_name = "ddb-test-table"
table_name = "ddb-test-table"

Would suggest making this unique to avoid any potential issues/conflicts and allow for potential parallelization in the future

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e274007

@viren-nadkarni viren-nadkarni merged commit b7d8458 into master Jul 28, 2023
25 checks passed
@viren-nadkarni viren-nadkarni deleted the dynamodb-testing-fixtures branch July 28, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants