Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests do reset the state file #2001

Open
buhtz opened this issue Jan 11, 2025 · 0 comments · May be fixed by #2003
Open

Unit tests do reset the state file #2001

buhtz opened this issue Jan 11, 2025 · 0 comments · May be fixed by #2003
Assignees
Labels
Bug HELP-WANTED Used by 24pullrequests.com to suggest issues High

Comments

@buhtz
Copy link
Member

buhtz commented Jan 11, 2025

Somehow running BIT via cron affects the state file and reset it.
I need to investigate that.

State files not reset but overwritten by a unit test. The PyFakeFS does not work in that test because the save() method is triggered via atexit module. At that time PyFakeFS is not active anymore.

@buhtz buhtz self-assigned this Jan 11, 2025
@buhtz buhtz added this to the 1.6.0 (upcoming release) milestone Jan 11, 2025
@buhtz buhtz added the HELP-WANTED Used by 24pullrequests.com to suggest issues label Jan 11, 2025
@buhtz buhtz changed the title Cron jobs seem to reset the state file Unit tests do reset the state file Jan 11, 2025
@buhtz buhtz linked a pull request Jan 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug HELP-WANTED Used by 24pullrequests.com to suggest issues High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant