Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_project_resolver
Tests reference — tests/knowledge_graph/test_project_resolver.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_project_resolver.py
source · 16 tests · 237 lines
Tests for
knowledge_graph.project_resolver.
Covers: knowledge_graph.project_resolver, knowledge_graph.runtime_writer
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestDeriveProjectId |
46 | |
| method | TestDeriveProjectId.test_basename_of_directory |
47 | |
| method | TestDeriveProjectId.test_trailing_slash_removed |
50 | |
| method | TestDeriveProjectId.test_none_returns_none |
53 | |
| method | TestDeriveProjectId.test_empty_string_returns_none |
56 | |
| class | TestResolveProjectId |
60 | |
| method | TestResolveProjectId.test_explicit_id_takes_precedence |
61 | |
| method | TestResolveProjectId.test_looks_up_project_node_by_path |
72 | |
| method | TestResolveProjectId.test_looks_up_project_node_by_slug |
81 | |
| method | TestResolveProjectId.test_falls_back_to_basename_when_no_project_node |
87 | |
| method | TestResolveProjectId.test_falls_back_to_basename_when_repo_unavailable |
93 | |
| method | TestResolveProjectId.test_none_project_dir_and_no_explicit_id_returns_none |
97 | |
| method | TestResolveProjectId.test_resolves_a_production_shaped_project_node_by_path |
100 | A Project written the way production writes it must still resolve. |
| method | TestResolveProjectId.test_explicit_id_still_wins_over_the_canonical_slug |
125 | coalesce must PREFER an explicit id, not replace it with the slug. |
| class | TestTheCanonicalIdIsDeclared |
143 | The env declaration that closes the project-id split-brain. |
| method | TestTheCanonicalIdIsDeclared.test_every_profile_declares_it |
168 | |
| method | TestTheCanonicalIdIsDeclared.test_it_matches_what_the_code_already_defaults_to |
179 | Twelve readers carry this default; the declaration must agree. |
| method | TestTheCanonicalIdIsDeclared.test_it_differs_from_the_basename_which_is_the_whole_point |
192 | If these ever coincide, this fix is load-bearing for nothing. |
| method | TestTheCanonicalIdIsDeclared.test_the_explicit_id_wins_over_the_basename |
229 |