Skip to content

[Bug]: Pytest modifies and updates search_library sqlite file #644

Closed
@CyanVoxel

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha v9.5.0 (main branch)

Operating System & Version

Windows 10

Description

Running Pytest (specifically one or more of the search_library tests) results in the test database being modified, resulting in git wanting to commit the changes.
The internal change seems to be a result of the file change counter value being updated.

Expected Behavior

The test database should not be changed on disk, especially when no changes are being made to it. It should also not be included in the .gitignore because the file in question can receive genuine updates and changes.

Steps to Reproduce

  1. Clone and set up a TagStudio development environment per the CONTRIBUTING.md instructions
  2. Run Pytest with pytest tagstudio/tests/
  3. Observe modified file at \TagStudio\tagstudio\tests\fixtures\search_library\.TagStudio\ts_library.sqlite

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionStatus: Help WantedExtra attention is neededType: BugSomething isn't working as intendedType: TestsTests or testing related

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions