Skip to content

Commit 83b4fa0

Browse files
committed
🧪 Match remote-data tests to localhost (aiidateam#120)
Create the code on the same localhost computer fixture that is used by the RemoteData inputs so the expected computer UUIDs match in the generated CalcInfo.
1 parent e857021 commit 83b4fa0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/calculations/test_shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_nodes_folder_data(generate_calc_job, generate_code, tmp_path):
9292
def test_nodes_remote_data(generate_calc_job, generate_code, tmp_path, aiida_localhost, use_symlinks):
9393
"""Test the ``nodes`` input with ``RemoteData`` nodes."""
9494
inputs = {
95-
'code': generate_code(),
95+
'code': generate_code(computer_label=aiida_localhost.label),
9696
'arguments': [],
9797
'nodes': {
9898
'remote': RemoteData(remote_path=str(tmp_path.absolute()), computer=aiida_localhost),
@@ -121,7 +121,7 @@ def test_nodes_remote_data_filename(generate_calc_job, generate_code, tmp_path,
121121
remote_data_b = RemoteData(remote_path=str(remote_path_b.absolute()), computer=aiida_localhost)
122122

123123
inputs = {
124-
'code': generate_code(),
124+
'code': generate_code(computer_label=aiida_localhost.label),
125125
'arguments': ['{remote_a}'],
126126
'nodes': {
127127
'remote_a': remote_data_a,

0 commit comments

Comments
 (0)