-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix:
MockBackend
wasn't mocking savetable
properly when the mo…
…de is `append` (#289) This PR updates the `MockBackend` implementation for mocking `SQLBackend` so that the `.savetable(…, mode='overwrite')` works correctly. - Prior to this PR using overwrite mode would replace all rows, not just the table being saved. - As of this PR using overwrite mode will only replace any existing rows for the given table; other tables are left-alone. Some incidental changes: - Update the test for `append`-mode to check that rows for a table accumulate. - The type signature for `.save_table()` has been improved.
- Loading branch information
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
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
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