ALBS-443: Integrate CodeNotary with git updater tool #1

Merged
soksanichenko merged 10 commits from ALBS-443 into master 2022-06-22 11:07:24 +00:00
Showing only changes of commit 037aa1ad5e - Show all commits

View File

@ -27,7 +27,7 @@ class CasWrapper:
SIGNER_ID=self._cas_signer_id
):
self._cas = local['cas']
self._cas('login')
self._cas['login']()
soksanichenko marked this conversation as resolved
Review

I feel uncomfortable with login() in __init__, can't we do it in __enter__ and __exit__?

I feel uncomfortable with `login()` in `__init__`, can't we do it in `__enter__` and `__exit__`?
Review

Do you suggest convert it to context manager?

Do you suggest convert it to context manager?
Review

yes

yes
def notarize(self, local_git_repo_path: str) -> str:
"""