def test_prettify_component_invalid(): component = "non-existent component" actual = logs.prettify_component(component) assert component in actual assert "UNPRETTIFIABLE COMPONENT" in actual
def test_prettify_component_valid(): component = "build" actual = logs.prettify_component(component) assert component in actual assert "UNPRETTIFIABLE COMPONENT" not in actual