Add file with explicit protected flag.
(self)
| 157 | self.pm = ProjectMemory() |
| 158 | |
| 159 | def test_add_protected_file(self): |
| 160 | """Add file with explicit protected flag.""" |
| 161 | self.pm.add("CODEY.md", "content", is_protected=True) |
| 162 | self.assertTrue(self.pm.is_tracked("CODEY.md")) |
| 163 | protected = self.pm.get_protected_files() |
| 164 | self.assertIn("CODEY.md", protected) |
| 165 | |
| 166 | def test_add_auto_protected_by_pattern(self): |
| 167 | """Files matching protected patterns should be auto-protected.""" |
nothing calls this directly
no test coverage detected