-
Notifications
You must be signed in to change notification settings - Fork 106
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
Conversation
@@ -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') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
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'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and intuitive
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. |
Oh, and 👍 for removing more code than adding |
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.