tests.test_bug_report moduleΒΆ
- tests.test_bug_report.report_block(stderr)[source]ΒΆ
The lines between the two markers of the one report in
stderr.
- tests.test_bug_report.test_unexpected_error_ends_with_a_report(invoke, tmp_path)[source]ΒΆ
An error of a command with a
report_urlends the run with a bug report.The report links to the form with a title, and masks paths and arguments.
- tests.test_bug_report.test_report_is_saved_in_the_cache(invoke)[source]ΒΆ
The report is saved in a file of the cache, whose path ends the output.
- tests.test_bug_report.test_no_report_without_url(invoke)[source]ΒΆ
A command without a
report_urllets the error through, as Click does.
- tests.test_bug_report.test_os_error_ends_with_one_line(invoke)[source]ΒΆ
An
OSErroris for the user to fix: it gets a one-line error, not a report.
- tests.test_bug_report.test_click_exits_pass_through(invoke, error, exit_code)[source]ΒΆ
The exceptions that Click exits with are no bug: the run ends as in Click.
- tests.test_bug_report.test_subcommand_error_reports_once(invoke)[source]ΒΆ
The error of a subcommand gets one report, with the options of both levels.
- tests.test_bug_report.test_click_extra_cli_reports_its_own_error(invoke, monkeypatch, tmp_path)[source]ΒΆ
An error of a
click-extrasubcommand gets a report for its issue form.The code of this CLI is in the Click ecosystem, like the frames that run it. Its frames start at the function of the subcommand, which the title names.
- tests.test_bug_report.test_report_survives_a_missing_version(invoke, monkeypatch)[source]ΒΆ
A version that cannot be found leaves the report without it.
- tests.test_bug_report.test_report_shows_resolved_jobs(invoke)[source]ΒΆ
--jobskeeps no value in the context, and shows the count it resolved to.
- tests.test_bug_report.test_log_report_lets_the_run_go_on(invoke)[source]ΒΆ
A CLI logs a report of its own for a failure that does not stop the run.
- tests.test_bug_report.test_report_addresses_an_agent(invoke, monkeypatch, agent)[source]ΒΆ
An AI agent running the CLI is asked to show the report to its user.
- tests.test_bug_report.test_option_words(param, value, words)[source]ΒΆ
A parameter renders as typed, its paths, patterns and arguments masked.
- tests.test_bug_report.test_report_form_url_keeps_the_query()[source]ΒΆ
The title joins the query of the URL, like the template of the form.
- tests.test_bug_report.test_describe_error(expt, described)[source]ΒΆ
An error reads as its class and message, on one line of capped length.