Skip to content

Commit

Permalink
Add and update tests for _check_path() method
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
sechkova committed Apr 3, 2020
1 parent b811471 commit 7617e09
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 108 deletions.
2 changes: 1 addition & 1 deletion tests/test_mix_and_match_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_with_tuf(self):
# new version is generated.
with open(file3_path, 'wt') as file_object:
file_object.write('This is role2\'s target file.')
repository.targets('role1').add_target(file3_path)
repository.targets('role1').add_target(os.path.basename(file3_path))

repository.writeall()

Expand Down
Loading

0 comments on commit 7617e09

Please sign in to comment.