diff --git a/toot/config.py b/toot/config.py index 4548ea5..21861e6 100644 --- a/toot/config.py +++ b/toot/config.py @@ -39,6 +39,10 @@ def make_config(path): def load_config(): + # Just to prevent accidentally running tests on production + if os.environ.get("TOOT_TESTING"): + raise Exception("Tests should not access the config file!") + path = get_config_file_path() if not os.path.exists(path):