-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most of the changes were due to 3.13 sqlite3 now being strict about not closing db connections - which we didn't do in our tests. Took the opportunity to simplify/remove some fixtures that were used only once or not at all.
- Loading branch information
Showing
16 changed files
with
182 additions
and
178 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ def test_monitor_404(myapp): | |
headers={myapp.config["SECURITY_TOKEN_AUTHENTICATION_HEADER"]: "token"}, | ||
) | ||
assert resp.status_code == 403 | ||
with myapp.app_context(): | ||
ds.db.engine.dispose() | ||
|
||
|
||
def test_blog_write(myapp): | ||
|
@@ -50,3 +52,6 @@ def test_blog_write(myapp): | |
) | ||
assert resp.status_code == 200 | ||
assert b"Yes, [email protected] can update blog" == resp.data | ||
|
||
with myapp.app_context(): | ||
ds.db.engine.dispose() |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ Flask-Login | |
Flask-SQLAlchemy | ||
sqlalchemy | ||
sqlalchemy-utils | ||
setuptools |
Oops, something went wrong.