0
This repository has been archived on 2025-04-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Minecraft-Overviewer/overviewer_core
Nicolas F 0d3d630104 Get rid of config global state, improve tests
While dicking around with the tests I noticed that you could make
them fail if you ran them twice. Many hours were spent investigating,
and it turns out that Overviewer's config stuff has global state that
gets modified by having parsed configurations actually modify the
default config values. Not good!

We can fix this by having settingsDefinition return a dict of the
defaults, instead of assigning it to module-level names.

We can also get rid of test_all.py, because what it would do with
pytest is run all tests *twice*. Instead, do the module path stuff
in __init__.py. Also, instead of throwing a non-specific Exception
if exmaple isn't checked out, just skip the test thank you very much.

This is the weirdest rabbit hole I've ever gone down and I haven't
slept in about 30 hours. I'm going to push this commit, and if it
breaks anything, I'll be blissfully asleep as the unwashed masses
begin to riot over exception this traceback that.
2019-07-24 17:02:39 +02:00
..
2019-07-15 17:23:25 +02:00
2019-07-24 09:49:25 +02:00
2019-03-07 15:43:01 +01:00
2019-07-24 09:35:52 +02:00
2016-11-29 09:13:42 -05:00
2019-06-23 12:47:05 -04:00
2019-07-24 09:23:36 +02:00
2019-03-17 17:57:07 +01:00
2019-07-09 13:44:43 +02:00
2019-03-17 17:57:07 +01:00
2019-07-12 17:48:32 +02:00
2019-07-15 17:23:25 +02:00
2019-07-06 19:06:15 +02:00
2019-04-20 10:36:53 +01:00
2019-07-15 17:23:25 +02:00