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

Updates to test skipping and fixtures #371

Merged
merged 1 commit into from
Apr 28, 2016
Merged

Conversation

adler-j
Copy link
Member

@adler-j adler-j commented Apr 27, 2016

Did some fixes to test skipping etc, the number of tests should now be the same across all platforms and with any combination of optional packages, any non-usable package will properly show as skipped instead of staying silent.

@adler-j adler-j changed the title MAINT: changed several tests to use fixtures Updates to test skipping and fixtures Apr 27, 2016
@@ -134,31 +150,45 @@ def test_setitem(fn):
assert x[index] == -index


@pytest.mark.xfail(reason='Expected to fail since inner scaling is not public')
Copy link
Member Author

Choose a reason for hiding this comment

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

These xfails have been removed, now we test that the weighting is correct, but assume that the constant weighting is used, should be improved but works for all current test cases.

Copy link
Member

Choose a reason for hiding this comment

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

Well yeah, it's the only one implemented :-). TODO, but not super high prio

@adler-j
Copy link
Member Author

adler-j commented Apr 27, 2016

This also fixes a bug on master where the skip if no largescale is missing, thus making the tests take a minute instead of 5 seconds.

def exponent(request):
return request.param


impl_params = [never_skip('numpy'),
Copy link
Member

Choose a reason for hiding this comment

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

Nice and intuitive

@kohr-h
Copy link
Member

kohr-h commented Apr 28, 2016

Found just one minor thing. Number of tests went up from ~1500 to almost 2000. Good for people who like numbers :-)

Looks very good otherwise.

@kohr-h
Copy link
Member

kohr-h commented Apr 28, 2016

Oh, and 👍 for removing more code than adding

@adler-j adler-j merged commit 8d79396 into master Apr 28, 2016
@adler-j adler-j deleted the skip_tests_properly branch April 28, 2016 08:27
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