style: check spelling in pre-commit (#758)

This commit is contained in:
Henry Schreiner
2021-07-14 13:45:04 -04:00
committed by GitHub
parent 94ce795776
commit 25c27ad283
7 changed files with 20 additions and 12 deletions
+4 -2
View File
@@ -106,10 +106,12 @@ def test_substitution_with_backslash():
def test_awkwardly_quoted_variable():
environment_recipe = parse_environment(
'VAR2=something"like this""$VAR1"$VAR1$(echo "theres more")"$(echo "and more!")"'
'VAR2=something"like this""$VAR1"$VAR1$(echo "there is more")"$(echo "and more!")"'
)
# pass the existing process env so PATH is available
environment_dict = environment_recipe.as_dictionary({"VAR1": "but wait"})
assert environment_dict.get("VAR2") == "somethinglike thisbut waitbut waittheres moreand more!"
assert (
environment_dict.get("VAR2") == "somethinglike thisbut waitbut waitthere is moreand more!"
)