chore: remove 86 MagicMock database files from repo root (pytest leak) #145
Labels
No labels
accessibility
backlog
beta-feedback
bug
duplicate
enhancement
feature-request
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
86 files with names like
<MagicMock name='mock.db' id='123397702202192'>exist in the kiwi repo root, totalling ~32MB.These are SQLite databases created when
kiwi.dbwas mocked during pytest runs — the mock'sstr()representation was used as a filename when the test infrastructure tried to open/create a DB file.Fix
<MagicMock name='mock.db'*>from repo root.gitignoreentry to prevent future recurrence:<MagicMock*tests/conftest.py— ensurekiwi.dbmock never leaks a real file open with the mock's str reprtmp_pathfixture should be used for test DB paths instead of the repo root pathCleanup command
Labels
bugchore