tests.test_manager_bin moduleΒΆ

bin output tests.

These tests stand in for the child process, so the report reaches run() and its failure gate the way a real one does. They never call bin.

tests.test_manager_bin.DRY_RUN_REPORT = '  β€’ /home/user/.local/bin/fzf v0.40.0 -> v0.74.2 (https://github.com/junegunn/fzf/releases/tag/v0.74.2)\n  β€’ /home/user/.local/bin/gh v2.40.0 -> v2.97.0 (https://github.com/cli/cli/releases/tag/v2.97.0)\n  β¨― command failed                                   error=Updates found, exit (dry-run mode).\n'ΒΆ

The <stderr> of bin update --dry-run, as the docstring of outdated shows it.

tests.test_manager_bin.manager(monkeypatch)[source]ΒΆ

A bin manager whose binary is never looked up.

tests.test_manager_bin.test_outdated_reads_the_dry_run_report(manager, monkeypatch, code, stderr, expected, kept_errors)[source]ΒΆ

The exit code decides whether the report is a result or a failure.

tests.test_manager_bin.test_outdated_without_a_completed_run(manager, monkeypatch)[source]ΒΆ

A dry run that never completed leaves no report to read.