Skip to content

Commit

Permalink
Make known targets tests less environment dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
kumekay committed May 27, 2022
1 parent f8c8d3d commit 06682a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/manifest/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 06682a2

Please sign in to comment.