From 06682a2f8ce93208d7d8f3cbb74efa9ced9fbf6f Mon Sep 17 00:00:00 2001 From: Sergei Silnov Date: Fri, 27 May 2022 09:52:51 +0200 Subject: [PATCH] Make known targets tests less environment dependent --- tests/manifest/test_manifest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/manifest/test_manifest.py b/tests/manifest/test_manifest.py index 56c4882c..efd38cb0 100644 --- a/tests/manifest/test_manifest.py +++ b/tests/manifest/test_manifest.py @@ -322,6 +322,7 @@ def test_known_targets_env(self, monkeypatch): assert 'test' in result def test_known_targets_idf(self, monkeypatch): + monkeypatch.delenv('IDF_COMPONENT_MANAGER_KNOWN_TARGETS', raising=False) monkeypatch.setenv( 'IDF_PATH', os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'fixtures', 'fake_idf')) result = known_targets() @@ -330,6 +331,8 @@ def test_known_targets_idf(self, monkeypatch): assert 'test' in result def test_known_targets_default(self, monkeypatch): + monkeypatch.delenv('IDF_COMPONENT_MANAGER_KNOWN_TARGETS', raising=False) + monkeypatch.delenv('IDF_PATH', raising=False) result = known_targets() assert result == DEFAULT_KNOWN_TARGETS