Skip to content
New issue

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

fail to test_usage_string #273

Open
yuzibo opened this issue Sep 23, 2023 · 0 comments
Open

fail to test_usage_string #273

yuzibo opened this issue Sep 23, 2023 · 0 comments

Comments

@yuzibo
Copy link

yuzibo commented Sep 23, 2023

I am packing the package because one package's build-dependence is bump2version, but
it seems the test fail on test_usage_string.
I would appreciate it if someone could help me to fix it.

        for option_line in EXPECTED_OPTIONS:
            assert option_line in out, "Usage string is missing {}".format(option_line)

>       assert EXPECTED_USAGE in out
E       AssertionError: assert 'bumpversion: v1.0.1 (using Python v3.11.5)\n\npositional arguments:\n  part                  Part of the ve
rsion to b...→ {new_version})\n  --commit-args COMMIT_ARGS\n                        Extra arguments to commit command (default: )\n' in 'us
age: bumpversion [-h] [--config-file FILE] [--verbose] [--list]\n                   [--allow-dirty] [--parse REGEX]...→ {new_version})\n  -
-commit-args COMMIT_ARGS\n                        Extra arguments to commit command (default: )\n'

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/tests/test_cli.py:188: AssertionError
=============================== warnings summary ===============================
bumpversion/cli.py:9
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/bumpversion/cli.py:9: DeprecationWarning: module 'sre_constants' is deprecated
    import sre_constants

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_cli.py::test_usage_string - AssertionError: assert 'bumpver...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant