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

test: rewrite test suite to use pytest fixtures #132

Merged
merged 1 commit into from Aug 23, 2023
Merged

Conversation

jpvanhal
Copy link
Member

Rewrite the test suite to use pytest fixtures ove classic xunit-style set-up. The fixture mechanism is more powerful and allows more modular and scalable approach for managing test state.

The tests for sync_trigger() and drop_trigger() were previously parametrized with create_test_cases() function to test the various search_trigger_name and search_trigger_function_name combinations. This did not have any effect because the tests were not passing them as options parameter to sync_trigger() and drop_trigger() functions. This is now fixed.

The Order model was removed from the tests. It was not used by any test case.

Rewrite the test suite to use pytest fixtures ove classic xunit-style
set-up. The fixture mechanism is more powerful and allows more modular
and scalable approach for managing test state.

The tests for `sync_trigger()` and `drop_trigger()` were previously
parametrized with `create_test_cases()` function to test the various
`search_trigger_name` and `search_trigger_function_name` combinations.
This did not have any effect because the tests were not passing them as
`options` parameter to `sync_trigger()` and `drop_trigger()` functions.
This is now fixed.

The `Order` model was removed from the tests. It was not used by any test
case.
@jpvanhal jpvanhal merged commit 8fd89ec into master Aug 23, 2023
12 checks passed
@jpvanhal jpvanhal deleted the pytest-fixtures branch August 23, 2023 13:05
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.

None yet

1 participant