Skip to content

Commit

Permalink
Update test_package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SAKURA-CAT committed Jan 27, 2025
1 parent 0508606 commit 4434928
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ def duplicate_save(p: str, h: str, user: str = "user", saved: bool = True):
:return: 是否保存成功
"""
time.sleep(0.1)

n = netrc.netrc(path)
info = n.authenticators(h)
new_info = (user, "", p)
assert (info == new_info) is not saved

r = P.save_key(user, p, host=h)
assert self.get_key(path, h) == p
assert r is saved
Expand Down

0 comments on commit 4434928

Please sign in to comment.