Skip to content

Commit c8abc50

Browse files
committed
.windsurfrules: Fix the mention of another python package, update fixture mention
1 parent 89fc14e commit c8abc50

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.windsurfrules

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# libtmux Python Project Rules
1+
# Python Project Rules
22

33
<project_stack>
44
- uv - Python package management and virtual environments
@@ -134,3 +134,29 @@
134134
- Reduces potential naming conflicts
135135
- Makes import statements more maintainable
136136
</import_guidelines>
137+
138+
<repository_testing_guidelines>
139+
- Use our own libvcs pytest fixtures for all repository-related tests in this project:
140+
- Create temporary repositories efficiently with factory fixtures
141+
- Benefit from automatic cleanup when tests finish
142+
- Utilize proper environment variables and configurations
143+
- Test against real VCS operations without mocking
144+
145+
- Basic repository testing pattern:
146+
```python
147+
def test_repository_operation(create_git_remote_repo):
148+
# Create a test repository
149+
repo_path = create_git_remote_repo()
150+
151+
# Test vcspull functionality with the repository
152+
# ...
153+
```
154+
155+
- For more complex scenarios, use the pre-configured repository instances:
156+
```python
157+
def test_sync_operations(git_repo):
158+
# git_repo is already a GitSync instance
159+
# Test vcspull sync operations
160+
# ...
161+
```
162+
</repository_testing_guidelines>

0 commit comments

Comments
 (0)