Skip to content

Commit 54ab55d

Browse files
committed
Handle more aiida-core deprecation warnings
1 parent e59f833 commit 54ab55d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

aiida_test_cache/mock_code/_fixtures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ def _get_mock_code(
226226
if _config_action == ConfigActions.GENERATE.value:
227227
mock_code_config[label] = code_executable_path
228228
code = InstalledCode(
229-
input_plugin_name=entry_point,
230229
computer=aiida_localhost,
230+
default_calc_job_plugin=entry_point,
231231
filepath_executable=mock_executable_path,
232+
label=code_label,
232233
)
233-
code.label = code_label
234234
variables = MockVariables(
235235
log_file=log_file.absolute(),
236236
label=label,
@@ -242,7 +242,7 @@ def _get_mock_code(
242242
fail_on_missing=_fail_on_missing,
243243
_hasher=hasher,
244244
)
245-
code.set_prepend_text(variables.to_env())
245+
code.prepend_text = variables.to_env()
246246

247247
code.store()
248248

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ aiida_archive_cache = "aiida_test_cache.archive_cache"
7676
addopts = '--durations=10 --durations-min=3 --strict-config --strict-markers -ra --cov-report xml --cov-append'
7777
filterwarnings = [
7878
'ignore:Creating AiiDA configuration:UserWarning:aiida',
79+
# https://github.com/aiidateam/plumpy/issues/283
80+
'ignore:There is no current event loop:DeprecationWarning:plumpy',
7981
]
8082

8183
[tool.yapf]

0 commit comments

Comments
 (0)