Skip to content

Use backend in ds fixture #5411

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

Merged
merged 4 commits into from
Jun 12, 2021
Merged

Use backend in ds fixture #5411

merged 4 commits into from
Jun 12, 2021

Conversation

max-sixty
Copy link
Collaborator

  • Passes pre-commit run --all-files

Follows #5410

max-sixty added 2 commits May 31, 2021 14:25
Also adds an example of parameterizing a test in dataset.py
@pep8speaks
Copy link

pep8speaks commented May 31, 2021

Hello @max-sixty! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-06-02 16:19:13 UTC

The result is less elegant, hopefully temporarily
assert "unicode" in result


@pytest.fixture(params=[1])
def ds(request):
def ds(request, backend):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixture is less elegant than I'd hoped; it now has three variations.

I think we could attempt to define one (maybe a couple) canonical datasets, and aim to use those any new tests that aren't testing something specific (e.g. some will need all missing data, but most tests have similar requirements).

Potentially that's just the result of the create_test_data function — is that our canonical dataset?

@max-sixty max-sixty added the plan to merge Final call for comments label Jun 1, 2021
@max-sixty max-sixty merged commit d2de2c7 into pydata:master Jun 12, 2021
@max-sixty max-sixty deleted the ds-fixture branch June 12, 2021 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants