From 6f0f53849b736fab14360a01fbaca18152dde428 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:12:04 +1000 Subject: [PATCH] tests: reset config changes in test_deny_nodes when finished testing --- tests/test_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_config.py b/tests/test_config.py index c7149edc73..220d6f257a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -293,3 +293,7 @@ def test_deny_nodes(patch_rootdir): assert has_integer assert has_string assert not has_float + + # Reset the config so that it doesn't affect other tests + get_config.cache_clear() + BaseInvocation.invalidate_typeadapter()