Skip to content

Commit b51c099

Browse files
committed
Tests: assert that test_targets use hash prefixes
Make sure that hash prefixes are added when downloading a target through the repository simulator. Signed-off-by: Martin Vrachev <[email protected]>
1 parent 53a24da commit b51c099

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_updater_with_simulator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def test_targets(self, test_case_data: TargetData):
113113
[file_info]
114114
)
115115

116+
# Assert consistent_snapshot is True and downloaded targets have prefix.
117+
self.assertTrue(self.sim.root.consistent_snapshot)
118+
self.assertTrue(updater.config.prefix_targets_with_hash)
116119
# download target, assert it is in cache and content is correct
117120
local_path = updater.download_target(file_info, self.targets_dir)
118121
self.assertEqual(

0 commit comments

Comments
 (0)