Skip to content

Commit

Permalink
add private attribute to fit the implementation of the mocked class (#93
Browse files Browse the repository at this point in the history
)

The equivalent of the attribute Locker._contains_credential needs to be added to TestLocker to mock it properly.
  • Loading branch information
sblondon authored Aug 7, 2022
1 parent 503010c commit 562e948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(self, lock: str | Path, local_config: dict[str, Any]) -> None:
self._content_hash = self._get_content_hash()
self._locked = False
self._write = False
self._contains_credential = False

def write(self, write: bool = True) -> None:
self._write = write
Expand Down

0 comments on commit 562e948

Please sign in to comment.