-
Notifications
You must be signed in to change notification settings - Fork 1
Test for post usage when combining usage items #53
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d3ebe2b
test for post usage when combining usage items
dlpbc 89ab300
added start and end date to AllUsage
dlpbc 600f456
two more post usage tests and updated a deprec fn
dlpbc 324d128
alembic revision to alter usage pkey constraint
dlpbc 297576a
remove duplicate constraint check for usage insert
dlpbc ba29785
monthly usage: delete existing rows within dates
dlpbc 0f18c60
Merge branch 'main' into tests_for_post_usage
dlpbc b36655a
updated rctab-models dependency
dlpbc 45948cb
alembic revision docstring and pylint ignore
dlpbc e260afb
ongoing work to fix failing tests
dlpbc 0926e31
ongoing work to fix tests (part 2)
dlpbc d25139a
ongoing work to fix fialed tests (part 3)
dlpbc 0321f7e
Remove old comments
Iain-S c5fda54
Typos
Iain-S 5d72ad3
Add test for delete_usage
Iain-S 222490f
Remove todo comment
Iain-S d07bd73
Merge branch 'main' into tests_for_post_usage
Iain-S File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# pylint: disable=invalid-name | ||
"""Drop the primary key of the usage table. | ||
|
||
Revision ID: 9f4b6184b2f8 | ||
Revises: b65796c99771 | ||
Create Date: 2024-10-10 11:28:39.846967 | ||
|
||
""" | ||
|
||
from alembic import op | ||
|
||
# pylint: disable=no-member | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "9f4b6184b2f8" | ||
down_revision = "b65796c99771" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
"""Upgrade the database.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint("usage_pkey", "usage", type_="primary", schema="accounting") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
"""Downgrade the database.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_primary_key("usage_pkey", "usage", ["id"], schema="accounting") | ||
# ### end Alembic commands ### |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.