We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main.py: with console_script entrypoints, you can generate a bin/scriptname.py script given a (testable) named main() callable:
console_script
main()
def main(argv=None): argv = argv if argv is not None else [] RETURN_OK = 0 return RETURN_OK def test_main(args): retcode = main(["-h"]) assert retcode retcode = main(["--help"]) assert retcode retcode = main(["--test"]) # subprocess.call(["pytest", "--cov=", "--cov-report=term-missing", path='.'])
https://github.com/lexiq-legal/pydantic_schemaorg/blob/main/pyproject.toml
Add tests #7
(opts, args)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
main.py: with
console_script
entrypoints, you can generate a bin/scriptname.py script given a (testable) namedmain()
callable:https://github.com/lexiq-legal/pydantic_schemaorg/blob/main/pyproject.toml
Add tests #7
(opts, args)
: https://github.com/westurner/dotvim/blob/9a2876d459be52710d0ce9c5bcedfe26fc3c9d42/snippets-ulti/python.snippets#L117-L120The text was updated successfully, but these errors were encountered: