You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO figure out: 1 test fails if we remove this retry mechanism. Can we write the test differently so that
# we don't have conditional logic in our tests?
if not jinja_func == "pin_subpackage('dotnet-runtime', exact=True, badParam=False)":
print(jinja_func)
recipe = Recipe.from_string(
recipe_text=yaml_str, renderer=RendererType.RUAMEL, variant={"target_platform": "dummy-platform"}
)
linter.lint([recipe])
messages = linter.get_messages()
return messages
# Only this test needs the weird exception handling
try:
recipe = Recipe.from_string(recipe_text=yaml_str, renderer=RendererType.RUAMEL)
except RecipeError as exc:
recipe = Recipe("")
check_cls = lint.recipe_error_to_lint_check.get(exc.__class__, lint.linter_failure)
messages = [check_cls.make_message(recipe=recipe, line=getattr(exc, "line"))]
return messages
The text was updated successfully, but these errors were encountered:
In my PR, i xfail this test otherwise it hard fails. See: https://github.com/anaconda/anaconda-linter/pull/369/files#diff-dab905a3625ce6df77f61b134d2b2e61bc0d09609bf902c2a5092f45730f8280
See the commentary for the test here: https://github.com/anaconda/anaconda-linter/pull/369/files#diff-11b4c502df02b23a6f1ff6164b6f6145f03cb413b2beef3dd6a5c1c11653bc23
Code:
anaconda-linter/tests/test_lint.py
Lines 206 to 224 in 92bcb92
The text was updated successfully, but these errors were encountered: