ManimCommunity / manim

A community-maintained Python framework for creating mathematical animations.
https://www.manim.community
MIT License
21.42k stars 1.57k forks source link

Change from tempconfig to a config fixture in tests #3853

Closed JasonGrace2282 closed 2 months ago

JasonGrace2282 commented 2 months ago

Before we were often doing

with tempconfig({}):
    ...

Which is just stupid, and it means that if one test forgets to do that, every test that depends on a value changed in that test is now screwed up. This is impossible to debug. Instead, we can just create a fixture that resets config after every test.