Skip to content

Commit

Permalink
Bump pytest version to 6 and fix examples for the latest AiiDA (#140)
Browse files Browse the repository at this point in the history
pytest <6 does not support reading the pyproject.toml.
  • Loading branch information
ltalirz authored May 3, 2021
1 parent 2e72709 commit ffe2943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/single_calculations/example_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def example_mm(cp2k_code):
sys.exit(3)

# Check if callgraph is there.
if "runtime.callgraph" in calc['retrieved']._repository.list_object_names(): # pylint: disable=protected-access
if "runtime.callgraph" in calc['retrieved'].list_object_names():
print("OK, callgraph file was retrived.")
else:
print("ERROR!")
Expand Down
6 changes: 3 additions & 3 deletions setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
},
"extras_require": {
"test": [
"pgtest==1.2.0",
"pytest>=4.4,<5.0.0",
"pytest-cov>=2.6.1,<3.0.0",
"pgtest~=1.3",
"pytest~=6.0",
"pytest-cov~=2.11.1",
"coverage"
],
"pre-commit":[
Expand Down

0 comments on commit ffe2943

Please sign in to comment.