Skip to content

Reset values of settings fixture does not work on mutable types? #601

Open
@gforcada

Description

@gforcada

Hi,

together with @jnns we stumbled upon this issue:

we have a dictionary in our settings_test.py where one key is just holding a boolean value.

In one test we modify that boolean value and on the next test the default value set on settings_test.py is not there, but rather the value set on the previous test.

On regular, plain values, i.e. MY_SETTING = 3 the value is reset perfectly from test to test, but seems that it does not handle mutable types like dictionaries, could it be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions