mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Finish test condition for _get_file() and test unsafe download
This commit is contained in:
parent
6aa8854e07
commit
c5125e4dd3
1 changed files with 4 additions and 0 deletions
|
|
@ -1579,7 +1579,11 @@ def verify_target_file(targets_path):
|
|||
self.repository_updater._hard_check_file_length(targets_path, file_size)
|
||||
self.repository_updater._check_hashes(targets_path, file_hashes)
|
||||
|
||||
self.repository_updater._get_file('targets.json', verify_target_file,
|
||||
file_type, file_size, download_safely=True)
|
||||
|
||||
self.repository_updater._get_file('targets.json', verify_target_file,
|
||||
file_type, file_size, download_safely=False)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue