Skip to content

fix plugin test fixtures for unittest#1622

Merged
ltalirz merged 4 commits into
aiidateam:release_v0.12.1from
ltalirz:issue_1451_speed_up_plugin_test_fixtures
Jun 5, 2018
Merged

fix plugin test fixtures for unittest#1622
ltalirz merged 4 commits into
aiidateam:release_v0.12.1from
ltalirz:issue_1451_speed_up_plugin_test_fixtures

Conversation

@ltalirz
Copy link
Copy Markdown
Member

@ltalirz ltalirz commented Jun 4, 2018

ltalirz added 2 commits June 4, 2018 19:42
plugin fixtures can now be used in the unittest framework with
more than one test (fix aiidateam#1425).
Also, a test runner now allows to run multiple test cases without having
to destroy and re-create the whole environment each time (fix aiidateam#1451).
@ltalirz ltalirz requested a review from DropD June 4, 2018 18:21
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 4, 2018

Codecov Report

Merging #1622 into release_v0.12.1 will increase coverage by 0.01%.
The diff coverage is 93.75%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           release_v0.12.1   #1622      +/-   ##
==================================================
+ Coverage            54.68%   54.7%   +0.01%     
==================================================
  Files                  246     246              
  Lines                32419   32420       +1     
==================================================
+ Hits                 17729   17735       +6     
+ Misses               14690   14685       -5
Impacted Files Coverage Δ
aiida/utils/fixtures.py 89.84% <93.75%> (+2.6%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20c5390...341ae04. Read the comment docs.

Comment thread aiida/utils/fixtures.py
cls.fixture_manager = _GLOBAL_FIXTURE_MANAGER
if not cls.fixture_manager.has_profile_open():
raise ValueError(
"Fixture mananger has no open profile. Please use aiida.utils.fixtures.TestRunner to run these tests."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice touch!

@ltalirz ltalirz merged commit da8da21 into aiidateam:release_v0.12.1 Jun 5, 2018
@ltalirz ltalirz deleted the issue_1451_speed_up_plugin_test_fixtures branch June 26, 2018 11:46
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.

3 participants