Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@auto_pytest(api.create)
def test_create_auto_invalid_repo(test_case, tmpdir):
tmpdir.chdir()
with pytest.raises(exceptions.InvalidCookiecutterRepository):
test_case()
def test_create_examples(tmpdir):
tmpdir.chdir()
verify_and_test_examples(api.create)
else:
print("")
print("Good work! Project's cruft has been updated and is as clean as possible!")
def _link_output(linked: bool) -> None:
if linked:
print("")
print("Project successfully linked to template!")
else:
print("")
print("Project linking failed :(")
cli = hug.cli(api=hug_api)
cli(api.create)
cli.output(_update_output)(api.update)
cli.output(_check_command_output)(api.check)
cli.output(_link_output)(api.link)