Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Oct 11, 2023
1 parent 05d6f2e commit 08885eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions kpops/utils/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def values(self) -> set[str]:
return set(super().values()).union(os.environ.values())

def items(self) -> dict[str, str]:
items = dict(super().items())
items.update(**os.environ)
return items
return {**os.environ, **self.data}


ENV = Environment()
2 changes: 1 addition & 1 deletion tests/utils/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_normal_behaviour_update_os_environ(system, fake_environment_linux):
keys = environment.keys()
assert "TEST" in keys
assert "test" in environment.values()
items = environment.items()
items = dict(environment.items())
assert items["TEST"] == "test"


Expand Down

0 comments on commit 08885eb

Please sign in to comment.