Skip to content

[v3] Files created during tests #1812

Closed
@d-v-b

Description

@d-v-b

Running the dimension separator tests in v3 results in a directory called src/fixture being created, which is not the correct thing for a test to be doing. Files generated for testing should be written to temporary directories. We should change test_dim_separator so that it does not write these files.

The files being written come from this fixture. I don't really understand what this fixture is doing, since it takes tmpdir, but contains a branch that ignores tmpdir and tries to write array data to a hard-coded path in the project directory, if that path is empty. It looks like it's trying to reference these files? If those files are static test fixtures, then should we move them to the tests directory, and remove the capacity for the pytest fixture in test_dim_separator.py to overwrite those fixtures?

@joshmoore do you have any ideas here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions