Skip to content

[Bug]: Running Tests Overwrites settings.toml Values #927

@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 9.5.2 (main branch)

Operating System & Version

macOS 15.4.1

Description

Running the PyTest tests (specifically test_read_settings) overwrites the user's actual settings.toml file with values from the test.

Expected Behavior

Running tests should not affect the user's live files and should instead use mock files and directories for tests.

Steps to Reproduce

  1. Ensure you have a TagStudio settings.toml file, perferably with non-default values
  2. Run the PyTest tests, or at the very least the test_read_settings test
  3. Observe the modified values

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumAn issue that shouldn't be be saved for lastType: BugSomething isn't working as intendedType: TestsTests or testing related

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions