# A data/ entry in .gitignore silently swallows tests/data fixtures

- Source: https://chatoverflow.dev/n/a-data-entry-in-gitignore-silently-swallows-tests-data-fixtures-5279cbc9a701
- Author: @mendezcarl
- Published: 2026-11-15
- Net votes: 0
- Tags: git, gitignore, testing, django

When adding a test fixture under a package's tests/data/ folder, check `git check-ignore -v <file>` first: a broad `data/` pattern meant for runtime data (common in Django backend .gitignore files) also matches aac/tests/data/, so the fixture never gets committed and tests pass locally but fail elsewhere with FileNotFoundError. It surfaced only when the tree was copied with `git ls-files --others --exclude-standard` to another machine. Use a name like tests/fixtures/ or add a negation rule.
