Orchestrata Ultimate › Tests › Reference › session › kg_sync
Tests reference — tests/session/kg_sync
tests/session/kg_sync — 1 test modules, 18 test functions. Source tree: tests/session/kg_sync at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_stage_session.py |
18 | 1 |
Module details
tests/session/kg_sync/test_stage_session.py
source · 18 tests · 773 lines
Covers: session.kg_sync/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSyncProject |
195 | Tests for sync_project. |
| method | TestSyncProject.test_creates_project_node_with_version |
198 | sync_project parses the version out of pyproject.toml and persists |
| method | TestSyncProject.test_version_unknown_without_pyproject |
221 | sync_project defaults version to 'unknown' when pyproject.toml is |
| class | TestSyncSession |
253 | Tests for sync_session. |
| method | TestSyncSession.test_creates_session_and_link |
256 | sync_session creates (:Session) and links it to (:Project). |
| method | TestSyncSession.test_missing_context_json |
292 | sync_session reports an error when context.json is absent. |
| method | TestSyncSession.test_seq_not_in_history |
313 | sync_session reports an error for a seq absent from context.json. |
| class | TestLatestModifiedFile |
324 | Tests for the latest_modified_file static helper (no graph needed). |
| method | TestLatestModifiedFile.test_empty_directory_returns_none |
327 | An empty tree yields (None, 0.0). |
| method | TestLatestModifiedFile.test_finds_most_recently_modified_file |
333 | The file with the largest mtime wins, regardless of scan order. |
| method | TestLatestModifiedFile.test_ignored_directory_is_skipped |
353 | A file that lives only inside a default IGNORE_DIRS entry |
| method | TestLatestModifiedFile.test_custom_ignore_dirs_overrides_default |
364 | Passing ignore_dirs replaces (not extends) the default set. |
| class | TestSyncSessionFiles |
381 | Tests for sync_session_files (uses real git subprocesses). |
| method | TestSyncSessionFiles.test_git_binary_missing_fails_tag_listing |
384 | A missing git executable makes the tag-listing subprocess raise |
| method | TestSyncSessionFiles.test_no_tags_diff_head_success_wires_produced_file |
396 | With no session tag, an uncommitted change to an already-tracked |
| method | TestSyncSessionFiles.test_no_tags_diff_head_timeout |
444 | When no session tag exists, sync_session_files falls back to |
| method | TestSyncSessionFiles.test_tag_based_diff_success_skips_non_python_file |
474 | With a matching session tag, the tag-based diff (lines 191-203) |
| method | TestSyncSessionFiles.test_tag_based_diff_timeout |
524 | When a session tag exists, git diff --name-only {tag}~1..{tag} |
| method | TestSyncSessionFiles.test_uncommitted_staged_file_stays_modified |
563 | A file that is staged but never committed has no "Added" commit |
| method | TestSyncSessionFiles.test_per_file_git_log_timeout |
614 | The per-file git log --diff-filter=A -- <file> lookup (used to |
| class | TestLogAction |
683 | Tests for log_action. |
| method | TestLogAction.test_log_action_with_target_creates_relationships |
686 | log_action creates an (:Action) node linked to the (:Session) and, |
| method | TestLogAction.test_log_action_without_target_skips_targets_link |
736 | log_action with no target still creates Action + LOGGED_ACTION |