-
Notifications
You must be signed in to change notification settings - Fork 9
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 for spatial problems #188
Conversation
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
==========================================
+ Coverage 71.07% 76.93% +5.85%
==========================================
Files 24 24
Lines 1943 1981 +38
Branches 342 351 +9
==========================================
+ Hits 1381 1524 +143
+ Misses 463 350 -113
- Partials 99 107 +8
|
|
Please take a look at: https://docs.pytest.org/en/7.1.x/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files |
If I understand correctly there is no alternative to naming them 'conftest.py' |
reading here: python/mypy#4008 |
@MUCDK tests fails because of this
any idea? the file is exactly the same as in master yet in master it doesn't fail, here it does... |
tests/mixins/test_time_analysis.py
Outdated
@@ -0,0 +1,186 @@ | |||
from typing import Tuple |
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 file should not exist any more. It should be in tests/analysis_mixins/
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.
please make sure that the file structure in the test folder corresponds to the file structure in the moscot module
assert mp[prob_key].y.data.shape == (n_obs, y_n_var) | ||
assert mp[prob_key].xy[0].data.shape == mp[prob_key].xy[1].data.shape == (n_obs, xy_n_vars) | ||
|
||
@pytest.mark.parametrize("var_names", ["0", [], [str(i) for i in range(20)]]) |
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.
Shouldn't empty var_names
throw? I'd expect if you don't want to use any, None
should be passed.
@MUCDK so far encounter this mypy error due to multiple
conftests.py
. How do we go about it?also I added the data generation step for (more complex) scenarios, however while doing it I realized that this would be needed for the regression tests but must say that in alignment case only case to do it against Paste for only the affine transform . Do you think it still makes sense?