Skip to content

Commit 3a13b73

Browse files
committed
Add and update tests for _check_path() method
- add a test for _check_path() method of Targets class. - update all tests calling _check_path() respectively - update test_tutorial Signed-off-by: Teodora Sechkova <[email protected]>
1 parent 68c22b4 commit 3a13b73

5 files changed

+156
-110
lines changed

tests/test_mix_and_match_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_with_tuf(self):
218218
# new version is generated.
219219
with open(file3_path, 'wt') as file_object:
220220
file_object.write('This is role2\'s target file.')
221-
repository.targets('role1').add_target(file3_path)
221+
repository.targets('role1').add_target(os.path.basename(file3_path))
222222

223223
repository.writeall()
224224

0 commit comments

Comments
 (0)