diff --git a/tests/dynamic_data/publications/wrong_input/util.py b/tests/dynamic_data/publications/wrong_input/util.py index 39b1d9ff0..82015c222 100644 --- a/tests/dynamic_data/publications/wrong_input/util.py +++ b/tests/dynamic_data/publications/wrong_input/util.py @@ -29,3 +29,7 @@ def format_exception(exception_info: dict, publication: Publication, parametriza if 'similar_filenames_mapping' in exception_info['data']: exception_info['data']['similar_filenames_mapping'] = {key.format(**format_variables): value.format(**format_variables) for key, value in exception_info['data']['similar_filenames_mapping'].items()} + if 'publication_name' in exception_info['data']: + exception_info['data']['publication_name'] = exception_info['data']['publication_name'].format(**format_variables) + if 'workspace_name' in exception_info['data']: + exception_info['data']['workspace_name'] = exception_info['data']['workspace_name'].format(**format_variables) diff --git a/tests/dynamic_data/publications/wrong_input/wrong_input_test.py b/tests/dynamic_data/publications/wrong_input/wrong_input_test.py index 847982f15..dd9d20501 100644 --- a/tests/dynamic_data/publications/wrong_input/wrong_input_test.py +++ b/tests/dynamic_data/publications/wrong_input/wrong_input_test.py @@ -1345,8 +1345,8 @@ class Key(Enum): 'message': 'Owner of the personal workspace have to keep write right.', 'actor_name': 'wrong_input_editor', 'owner': 'wrong_input_owner', - 'publication_name': 'patch_map_write_rights_without_owner_patch', - 'workspace_name': 'wrong_input_owner' + 'publication_name': '{publication_name}', + 'workspace_name': '{workspace}', }, }, Key.MANDATORY_CASES: frozenset([RestMethod.PATCH, WithChunksDomain.FALSE, CompressDomain.FALSE]),