(self)
| 489 | self.assertEqual(result["sessions"], 1) |
| 490 | |
| 491 | def test_scan_is_incremental(self): |
| 492 | self._write_project_jsonl("user/myproject", "sess-1") |
| 493 | scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False) |
| 494 | # Second scan should skip |
| 495 | result = scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False) |
| 496 | self.assertEqual(result["skipped"], 1) |
| 497 | self.assertEqual(result["new"], 0) |
| 498 | |
| 499 | def test_scan_empty_directory(self): |
| 500 | result = scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False) |
nothing calls this directly
no test coverage detected