-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
tests: update env.py and conftest so tests use unique databases #3654
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dosubot
bot
added
the
size:M
This PR changes 30-99 lines, ignoring generated files.
label
Sep 2, 2024
This pull request is automatically being deployed by Amplify Hosting (learn more). |
ogabrielluiz
force-pushed
the
fix/migrationenvpy
branch
from
September 3, 2024 13:31
e7fecc5
to
72557ac
Compare
dosubot
bot
added
size:L
This PR changes 100-499 lines, ignoring generated files.
and removed
size:M
This PR changes 30-99 lines, ignoring generated files.
labels
Sep 3, 2024
italojohnny
approved these changes
Sep 3, 2024
ogabrielluiz
force-pushed
the
fix/migrationenvpy
branch
from
September 4, 2024 12:52
4956751
to
c355058
Compare
…ogic and remove unused imports
- Added cleanup steps to various pytest fixtures to ensure temporary directories, database entries, and other resources are properly cleaned up after tests. - Modified fixtures to use `yield` for better resource management. - Ensured database connections are closed and tables are dropped after tests. - Improved temporary directory handling with context managers.
… and fixtures, and update existing fixtures for consistency.
- Corrected the import order in `utils.py`. - Added validation for `flow_id` in the transaction handling logic to ensure it is set correctly.
- Introduced `_delete_transactions_and_vertex_builds` function to remove transactions and vertex builds associated with a user. - Updated `user` fixture to call the new cleanup function before deleting the user.
…y and correctness
ogabrielluiz
force-pushed
the
fix/migrationenvpy
branch
from
September 6, 2024 17:43
c355058
to
9864568
Compare
ogabrielluiz
added
lgtm
This PR has been approved by a maintainer
and removed
lgtm
This PR has been approved by a maintainer
labels
Oct 9, 2024
Cannot auto-update because of conflicts. |
ogabrielluiz
added
lgtm
This PR has been approved by a maintainer
and removed
lgtm
This PR has been approved by a maintainer
labels
Oct 9, 2024
ogabrielluiz
added
lgtm
This PR has been approved by a maintainer
and removed
lgtm
This PR has been approved by a maintainer
labels
Oct 9, 2024
ogabrielluiz
added
lgtm
This PR has been approved by a maintainer
and removed
lgtm
This PR has been approved by a maintainer
labels
Oct 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes refactoring of the Alembic environment script to simplify the database connection logic and remove unused imports. It also refactors the test client fixture to use TemporaryDirectory and UUID for the database path. These changes improve the code readability and maintainability.