Commit 64c8af3
committed
fix: Resolve test isolation bug in pairing integration tests
Use temporary directories for each test to prevent state leakage
between test runs. Previously, all tests shared the default global
pairing store path, causing paired users to persist across tests.
- Add tempfile.mkdtemp() for isolated test directories
- Add teardown_method() to clean up temporary directories
- Each test now gets fresh pairing store, fixing false failures
Fixes test isolation issue where test_owner_approval_allows_future_messages
was affecting subsequent tests by persisting pairing state.1 parent 735ccad commit 64c8af3
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
0 commit comments