Skip to content

Commit

Permalink
Update agent_persist_mock to patch _exists method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Nasser committed Feb 24, 2025
1 parent 6f7af64 commit 6819446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ostorlab/testing/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _get(key):
if key in storage:
return storage[key]

def _add(key: Union[str, bytes], value: bytes):
def _add(key: Union[str, bytes], value: bytes) -> None:
"""Check values are present in the storage dict."""
if isinstance(value, bytes) is False:
value = str(value).encode()

Check warning on line 100 in src/ostorlab/testing/agent.py

View check run for this annotation

Codecov / codecov/patch

src/ostorlab/testing/agent.py#L100

Added line #L100 was not covered by tests
Expand Down

0 comments on commit 6819446

Please sign in to comment.