carpedm20 / emoji

emoji terminal output for Python
Other
1.91k stars 278 forks source link

Fix tests relying on a fixed execution order #293

Closed cvzi closed 6 months ago

cvzi commented 6 months ago

This fixes a minor problem in the test cases. With pytest the test cases are always executed in the same order. When tests were run manually in a different order, some tests could fail, because the emoji.config.* values were changed (or not changed) by previous tests. This PR should make the test cases independent of execution order.