Skip to content

Commit

Permalink
Update test_load_repository
Browse files Browse the repository at this point in the history
Add a tests case checking if delegated Targets() objects
are loaded correctly.

Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
  • Loading branch information
sechkova committed Jun 10, 2020
1 parent 1bc320f commit 3bfe50c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_repository_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,10 @@ def test_load_repository(self):

repository = repo_tool.load_repository(repository_directory)
self.assertTrue(isinstance(repository, repo_tool.Repository))
self.assertTrue(isinstance(repository.targets('role1'),
repo_tool.Targets))
self.assertTrue(isinstance(repository.targets('role1')('role2'),
repo_tool.Targets))

# Verify the expected roles have been loaded. See
# 'tuf/tests/repository_data/repository/'.
Expand Down

0 comments on commit 3bfe50c

Please sign in to comment.