generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description 5000 lines removed 😮 ## Related Issues #63 ## Additional Notes - Making SQLite the default database for testing and local_server, now the old code is removed. HOWEVER, we will continue to use postgres in CI - Removed assets and migrations related to old schema - explicitly added DB adapters (postgres, mysql, microsoft sql server) to pyproject.toml - consolidating testing session fixtures by creating a new contextmanager function, `get_test_session`, in database.py and adding [conftest.py](https://docs.pytest.org/en/7.1.x/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files) to assist with creating reusable testing fixtures - removed all `recordlinker.linkage` code and tests, except for matchers, this was copied to `recordlinker.linking.old_matchers` (we need to port these methods before we can move them) - removed old schema calls from the link-record API endpoint - removed pyway helpers from `recordlinker.utils` - renamed test_record_linkage to test_main (as its really just testing the API endpoints in main.py). Rewrote some of the tests to make use of the new client fixture.
- Loading branch information
1 parent
bdaa30e
commit 1a2f7ce
Showing
40 changed files
with
179 additions
and
5,289 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
DB_URI="postgresql+psycopg2://postgres:pw@localhost:5432/postgres" | ||
TEST_DB_URI="sqlite:///:memory:" | ||
DB_URI="sqlite:///db.sqlite3" |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.