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

tests: render help pages #807

Closed
wants to merge 1 commit into from
Closed

tests: render help pages #807

wants to merge 1 commit into from

Conversation

jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Sep 30, 2024

test for #804

expected to fail on windows systems

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
Copy link
Member Author

jkowalleck commented Sep 30, 2024

the test runs showcase the bug described in #804
https://github.com/CycloneDX/cyclonedx-python/actions/runs/11111264109/job/30870797680?pr=807#step:8:1460

Traceback (most recent call last):
  File "D:\a\cyclonedx-python\cyclonedx-python\tests\integration\test_cli_environment.py", line 49, in test_help
    res, out, err = run_cli('environment', '--help')
  File "D:\a\cyclonedx-python\cyclonedx-python\tests\integration\__init__.py", line 34, in run_cli
    c_res = _run_cli(argv=args)
  File "D:\a\cyclonedx-python\cyclonedx-python\cyclonedx_py\_internal\cli.py", line 270, in run
    args = vars(arg_parser.parse_args(argv))  # may exit -> raise `SystemExit`
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1768, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1988, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1965, in consume_positionals
    take_action(action, args)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1874, in take_action
    action(self, namespace, argument_values, option_string)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1159, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 2006, in _parse_known_args
    start_index = consume_optional(start_index)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1946, in consume_optional
    take_action(action, args, option_string)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1874, in take_action
    action(self, namespace, argument_values, option_string)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 1044, in __call__
    parser.print_help()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 2494, in print_help
    self._print_message(self.format_help(), file)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 2478, in format_help
    return formatter.format_help()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 282, in format_help
    help = self._root_section.format_help()
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 213, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 213, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\argparse.py", line 494, in _format_text
    text = text % dict(prog=self._prog)
TypeError: not enough arguments for format string

@jkowalleck
Copy link
Member Author

already included in #805

@jkowalleck jkowalleck closed this Sep 30, 2024
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

Successfully merging this pull request may close these issues.

1 participant