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

Tests refactor: use a vector of test cases for parsing pyproject.toml tests #250

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

mknorps
Copy link
Collaborator

@mknorps mknorps commented Mar 20, 2023

Refactor list of pyproject.toml test cases to use a vector with default values, similar to 'test_vectors' from utils.

Applied to input of test_parse_pyproject_content__malformatted_poetry_dependencies__yields_no_dependencies, because the rest of the tests have at most 3 parameters per pytest.param.

In this PR no new test is added, only code moved around for better readability, application of further changes and unification with FDTestVector style started by @jherland.

Analog of #248 and will close point:

Consider using objects with reasonable defaults for pytest.param inputs (test in `compare_imports_to_dependencies) have now 5 variables, for which most is just an empty list

of #166.

@mknorps mknorps force-pushed the maria/create-vector-for-pyproject-tests branch from 1a5186f to 982a43a Compare March 20, 2023 09:28
Copy link
Member

@jherland jherland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

@mknorps mknorps force-pushed the maria/create-vector-for-pyproject-tests branch from 982a43a to ebacf9b Compare March 20, 2023 09:36
@mknorps mknorps merged commit 797c366 into main Mar 20, 2023
@mknorps mknorps deleted the maria/create-vector-for-pyproject-tests branch March 20, 2023 10:01
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.

2 participants