Skip to content

Commit

Permalink
Handle more aiida-core deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 9, 2024
1 parent e59f833 commit d283ca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiida_test_cache/mock_code/_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ def _get_mock_code(
if _config_action == ConfigActions.GENERATE.value:
mock_code_config[label] = code_executable_path
code = InstalledCode(
input_plugin_name=entry_point,
computer=aiida_localhost,
default_calc_job_plugin=entry_point,
filepath_executable=mock_executable_path,
label=code_label,
)
code.label = code_label
variables = MockVariables(
log_file=log_file.absolute(),
label=label,
Expand All @@ -242,7 +242,7 @@ def _get_mock_code(
fail_on_missing=_fail_on_missing,
_hasher=hasher,
)
code.set_prepend_text(variables.to_env())
code.prepend_text = variables.to_env()

code.store()

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ aiida_archive_cache = "aiida_test_cache.archive_cache"
addopts = '--durations=10 --durations-min=3 --strict-config --strict-markers -ra --cov-report xml --cov-append'
filterwarnings = [
'ignore:Creating AiiDA configuration:UserWarning:aiida',
# https://github.com/aiidateam/plumpy/issues/283
'ignore:There is no current event loop:DeprecationWarning:plumpy',
# https://github.com/aiidateam/aiida-core/issues/6657
'ignore:Python 3.14 will, by default, filter extracted tar archives:DeprecationWarning:aiida',
]

[tool.yapf]
Expand Down

0 comments on commit d283ca6

Please sign in to comment.