tests.test_manager_yarn module¶
Yarn Classic query tests.
These tests replay captured yarn --silent --json streams through
YarnClassic.search and YarnClassic.outdated. They do not invoke yarn.
- tests.test_manager_yarn.finished(status)[source]¶
The
--verboserecord yarn prints when the registry answers.- Return type:
- tests.test_manager_yarn.replay(monkeypatch, manager, stdout, stderr)[source]¶
Stand in for
run_cli, recording the run the wayrun()does.- Return type:
- tests.test_manager_yarn.spawn(monkeypatch, manager, code, stdout, stderr)[source]¶
Stand in for the child process, so the failure gate of
run()runs.- Return type:
- tests.test_manager_yarn.test_outdated_reads_exit_1_as_updates(yarn, monkeypatch, caplog)[source]¶
Yarn exits 1 when updates exist, its warnings on
<stderr>.
- tests.test_manager_yarn.test_outdated_registry_failure(yarn, monkeypatch, caplog)[source]¶
A failed registry request still fails, relaying only its
errorrecord.
- tests.test_manager_yarn.test_search_missing_package(yarn, monkeypatch, caplog, status)[source]¶
Yarn resolves these answers to “no such package”: an empty result.