File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 1- # libtmux Python Project Rules
1+ # Python Project Rules
22
33<project_stack>
44- uv - Python package management and virtual environments
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>
You can’t perform that action at this time.
0 commit comments