Commit b581cad
committed
cursor,windsurf(rules): Add pytest testing guidelines to project rules
why: Standardize pytest testing practices across the project.
what:
- Add section specifying use of fixtures over mocks
- Example: libtmux-specific fixtures (server, session, window, pane)
- Require documentation for exceptional test cases
- Recommend tmp_path fixture over tempfile
- Prefer monkeypatch fixture over unittest.mock
refs: Improves consistency and maintainability of test suite1 parent 9a0baba commit b581cad
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
0 commit comments