Skip to content
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

Infra web tests #644

Merged
merged 18 commits into from
Jul 2, 2023
Merged

Infra web tests #644

merged 18 commits into from
Jul 2, 2023

Conversation

lukasjuhrich
Copy link
Collaborator

Fixes #643

The `test_edit_nonexistent_switch` test fails due to a bug thus uncovered.
Once again, `test_delete_nonexistent_switch` uncovered a bug similar
to the one before..
The session has `autobegin` behavior, and is begun explicitly outside
of the request when testing; therefore, `.begin` fails in this
scenario.

Refs #643
This required doing the `rollback` on a nested session (i.e., a
`SessionTransaction`) instead of the outer one.
We add an exemplary test which replaces a lib function by an error to
test this.
@lukasjuhrich lukasjuhrich marked this pull request as ready for review July 2, 2023 17:38
@lukasjuhrich lukasjuhrich merged commit 386baee into develop Jul 2, 2023
7 checks passed
@lukasjuhrich lukasjuhrich deleted the infra_web_tests branch September 6, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

full coverage of web.blueprints.infrastructure
1 participant