Skip to content

Commit

Permalink
Remove use of silent when importing AiiDA data
Browse files Browse the repository at this point in the history
This parameter is deprecated as of v1.5.0.
  • Loading branch information
CasperWA committed Nov 16, 2020
1 parent d0ccf7e commit 61ed26c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/cli/test_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_calc_all_new(run_cli_command, aiida_profile, top_dir):
# Clear database and get initialized_nodes.aiida
aiida_profile.reset_db()
archive = top_dir.joinpath("tests/cli/static/initialized_nodes.aiida")
import_data(archive, silent=True)
import_data(archive)

fields = ["elements", "chemical_formula_hill"]

Expand Down Expand Up @@ -81,7 +81,7 @@ def test_calc_all_new(run_cli_command, aiida_profile, top_dir):
# Repopulate database with the "proper" test data
aiida_profile.reset_db()
original_data = top_dir.joinpath("tests/static/test_structuredata.aiida")
import_data(original_data, silent=True)
import_data(original_data)


def test_calc(run_cli_command, aiida_profile, top_dir):
Expand All @@ -95,7 +95,7 @@ def test_calc(run_cli_command, aiida_profile, top_dir):
# Clear database and get initialized_nodes.aiida
aiida_profile.reset_db()
archive = top_dir.joinpath("tests/cli/static/initialized_nodes.aiida")
import_data(archive, silent=True)
import_data(archive)

fields = ["elements", "chemical_formula_hill"]

Expand Down Expand Up @@ -139,4 +139,4 @@ def test_calc(run_cli_command, aiida_profile, top_dir):
# Repopulate database with the "proper" test data
aiida_profile.reset_db()
original_data = top_dir.joinpath("tests/static/test_structuredata.aiida")
import_data(original_data, silent=True)
import_data(original_data)
4 changes: 2 additions & 2 deletions tests/cli/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_init(run_cli_command, aiida_profile, top_dir):
aiida_profile.reset_db()

archive = top_dir.joinpath("tests/cli/static/structure_data_nodes.aiida")
import_data(archive, silent=True)
import_data(archive)

n_structure_data = orm.QueryBuilder().append(orm.StructureData).count()

Expand Down Expand Up @@ -64,4 +64,4 @@ def test_init(run_cli_command, aiida_profile, top_dir):
# Repopulate database with the "proper" test data
aiida_profile.reset_db()
original_data = top_dir.joinpath("tests/static/test_structuredata.aiida")
import_data(original_data, silent=True)
import_data(original_data)
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def aiida_profile(top_dir) -> TestManager:
os.environ["AIIDA_PROFILE"] = profile

filename = top_dir.joinpath("tests/static/test_structuredata.aiida")
import_data(filename, silent=True)
import_data(filename)

yield manager
finally:
Expand Down

0 comments on commit 61ed26c

Please sign in to comment.