-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Mirror codebase structure in tests #6084
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6084 +/- ##
==========================================
+ Coverage 89.54% 91.76% +2.22%
==========================================
Files 72 86 +14
Lines 12929 17692 +4763
==========================================
+ Hits 11577 16235 +4658
- Misses 1352 1457 +105
|
To avoid conflicts with the other PRs I would suggest we merge this earlier rather than later. |
Thank you. I don't mind rebasing, but I see what I can do tonight. |
I didn't mean you have to rush like that. Just giving it priority over other PRs. |
b9195ef
to
ff2f817
Compare
The files I am planning to work on the others this weekend ( |
e44ff1b
to
8223642
Compare
Yes let's keep this PR just about the distribution tests |
Looks nearly done. I left some final suggestions. Once you address them I think we can merge. |
Can you add a bullet point in the maintenance section on the top PR post? Also some tests seem to be failing, let me know if you need help with those (haven't peaked at the logs) |
Thank you for your review! Yes, the tests should be fixable. The only one that I don't understand is the docs: it fails to build the 404 page for an obscure reason... Do you have an idea about this? And it was the same error for the first version of the PR. |
I think the docs build has been failing everywhere, you can ignore it |
e0f336f
to
bf316ac
Compare
I think it is all set now. We should probably think of rebalancing the github test workers at some point, with many tests having moved around. |
Yes, after a few more PRs get open/merged we can get an idea of the average runtime to rebalance. |
evaled_moment = moment(a).eval({mu: mu_val}) | ||
|
||
|
||
def test_all_distributions_have_moments(): |
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.
This seems to be repeated above
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.
Still looks unresolved on my end? Codecov is complaining the test above are not being covered, which agress with them still being duplicated.
) | ||
|
||
|
||
class TestDensityDist: |
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.
There's already a TestDensityDist class above
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.
Still duplicated above?
Argh, my bad, tricky rebasing… Good catches. |
@Armavica youre doing an amazing job. Thanks for all the effort |
bf316ac
to
0b86b76
Compare
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.
Still some duplicated tests in test_distributions
and an indentation error that is putting two tests inside the previous one. I know how painful rebases can be :D
Otherwise looks great!!!
), | ||
], | ||
) | ||
def test_asymmetriclaplace_moment(b, kappa, mu, size, expected): |
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.
This one is missing an indentation, which is causing the following tests to be inside it and not run (codecov warning)
evaled_moment = moment(a).eval({mu: mu_val}) | ||
|
||
|
||
def test_all_distributions_have_moments(): |
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.
Still looks unresolved on my end? Codecov is complaining the test above are not being covered, which agress with them still being duplicated.
) | ||
|
||
|
||
class TestDensityDist: |
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.
Still duplicated above?
0b86b76
to
32b16fa
Compare
Ok, I understood my mistake: I think I was repeatedly trying to fix the wrong commit. The rebase went without problem this time so I think that it should be ok. And thank you for mentioning codecov: I understood where to look to spot all of this. |
Merged! Thanks for this :) Feel free to break some more eggs. |
What is this PR about?
This PR splits up the test files
test_distribution.py
,test_moments.py
andtest_random.py
, to start tackling issue #5777.Checklist
Major / Breaking Changes
Bugfixes / New features
Docs / Maintenance
test_distribution.py
,test_moments.py
andtest_random.py
in more specific files.