carpedm20 / emoji

emoji terminal output for Python
Other
1.87k stars 273 forks source link

Fix tests relying on a fixed execution order #293

Closed cvzi closed 3 months ago

cvzi commented 3 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.