Skip to content

Commit

Permalink
Fix tests after merging #17
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSchaumont committed Oct 6, 2023
1 parent cb8a49d commit afd23cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_run_component/test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_run_component(run_component):
stdout_str = temp_stdout.getvalue()
print(stdout_str)
assert (
"Different values were defined in the 'meta' dictionairy that limit memory, choosing the one with the smallest unit"
"Different values were defined in the 'meta' dictionary that limit memory, choosing the one with the smallest unit"
not in stdout_str
)
sys.exit(result)
2 changes: 1 addition & 1 deletion tests/unittests/fixtures/test_meta_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_get_config_path(meta_config_path):
result = pytester.runpytest("-v")
result.stdout.fnmatch_lines(
[
"*KeyError: \"The 'config' value was not set in the 'meta' dictionairy of the test module *",
"*KeyError: \"The 'config' value was not set in the 'meta' dictionary of the test module *",
]
)
assert result.ret != 0
Expand Down
6 changes: 3 additions & 3 deletions viashpy/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def memory_bytes(meta_attribute_getter):
if memory_value is not None:
assert isinstance(memory_value, int) or isinstance(
memory_value, float
), "The values for the memory resources set in the `meta` dictionairy must be floats or integers."
), "The values for the memory resources set in the `meta` dictionary must be floats or integers."
all_memory_attributes[suffix] = memory_value
except KeyError:
pass
Expand All @@ -75,7 +75,7 @@ def memory_bytes(meta_attribute_getter):
if len(tobytesconverter.AVAILABLE_UNITS()) != len(memory_bytes):
# if not all units are set, the user probably specified the memory themselves multiple times...
warnings.warn(
"Different values were defined in the 'meta' dictionairy that "
"Different values were defined in the 'meta' dictionary that "
f"limit memory, choosing the one with the smallest unit. Found: {memory_bytes}, "
f"available units: {tobytesconverter.AVAILABLE_UNITS()}."
)
Expand Down Expand Up @@ -109,7 +109,7 @@ def meta_config_path(meta_attribute_getter, test_module):
config_path = meta_attribute_getter("config")
except KeyError:
raise KeyError(
f"The 'config' value was not set in the 'meta' dictionairy of the test module {test_module}."
f"The 'config' value was not set in the 'meta' dictionary of the test module {test_module}."
"Please define it between the '### VIASH_START ... ### VIASH_END' block."
"In case this error is reported while using 'viash test' or 'viash_test', "
"use a viash version >= 0.6.4."
Expand Down

0 comments on commit afd23cb

Please sign in to comment.