Commit ce52ddd
fix: Handle Windows line endings and paths in tests
Fix 3 test failures on Windows runners:
1. test_get_resource_by_id: Normalize line endings when comparing content
- Windows writes files with \r\n but test expects \n
- Solution: Strip all line endings before comparison
2. test_get_resource_by_permalink: Same line ending normalization
3. test_create_project_basic_operation: Handle Windows absolute paths
- Test expected "/tmp/test-new-project" but Windows returns "D:/tmp/test-new-project"
- Solution: Check for path component presence rather than exact match
All tests now pass on both Unix and Windows platforms.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joe P <joe@basicmemory.com>1 parent 94de459 commit ce52ddd
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
0 commit comments