-
Notifications
You must be signed in to change notification settings - Fork 192
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
Reuse functionality between AiidaTestCase and pytest fixtures #4781
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4781 +/- ##
===========================================
- Coverage 79.56% 79.55% -0.00%
===========================================
Files 515 515
Lines 36812 36806 -6
===========================================
- Hits 29285 29279 -6
Misses 7527 7527
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
note in #4782 I'm trying to remove all |
dd58e2c
to
e79e37b
Compare
Thanks, yes I've seen - the changes made here are still relevant I think, and I will then abstain from any work converting the aiidatestcase to pytest. This reminds me - I'm not sure whether we actually can just remove the aiidatestcase entirely before 2.0.0 since it's being used by a couple of plugins https://github.com/search?q=aiidatestcase&type=code I will check whether any of those are aiida 1 compatible (and whether any of them used the |
AiidA 1.0 plugins using aiidatestcase: https://github.com/dev-zero/aiida-gaussian-datatypes/blob/c069c35f9738541d5aee38a37837e4cb666e3335/tests/test_cli.py P.S. No sign of the |
I.e. we should not delete it (but of course we can still migrate our internal tests). |
e79e37b
to
ccca6f6
Compare
All of this has been quite radically changed in #5330 😬 Note also, we are now relatively close to removing
|
fine to close |
User.orm.objects.get_or_create_default
method that can be used anywhere (verdi setup
,AiidaTestCase
, pytest fixtures, ...)clean_db
) to a private method of the backend (could also be standalone if that is preferred)