The test fails because it assumes that there is not already a context set, so overwrite=False would set it.
However, there is already a context set, so it doesn't get overwritten and the assertion fails.
Not immediately sure why there is a context set already even when this is the only test being run.
I'm guessing that some other test clears the context and that's why this test passes most of the time.
The test fails because it assumes that there is not already a context set, so overwrite=False would set it.
However, there is already a context set, so it doesn't get overwritten and the assertion fails.
Not immediately sure why there is a context set already even when this is the only test being run.
I'm guessing that some other test clears the context and that's why this test passes most of the time.