From 7aff0572baa599fd2b1497de9a06c668d0a48a45 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Mon, 6 Feb 2017 16:20:28 -0500 Subject: [PATCH] Add missing unit tests for last commit --- tests/test_mix_and_match_attack.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_mix_and_match_attack.py b/tests/test_mix_and_match_attack.py index b4c1af67..61c1bdbc 100755 --- a/tests/test_mix_and_match_attack.py +++ b/tests/test_mix_and_match_attack.py @@ -123,6 +123,8 @@ def setUp(self): # We are inheriting from custom class. unittest_toolbox.Modified_TestCase.setUp(self) + self.repository_name = 'test_repository' + # Copy the original repository files provided in the test folder so that # any modifications made to repository files are restricted to the copies. # The 'repository_data' directory is expected to exist in 'tuf/tests/'. @@ -157,7 +159,7 @@ def setUp(self): # Setting 'tuf.settings.repository_directory' with the temporary client # directory copied from the original repository files. - tuf.settings.repository_directory = self.client_directory + tuf.settings.repositories_directory = self.client_directory self.repository_mirrors = {'mirror1': {'url_prefix': url_prefix, 'metadata_path': 'metadata', 'targets_path': 'targets', @@ -165,7 +167,7 @@ def setUp(self): # Create the repository instance. The test cases will use this client # updater to refresh metadata, fetch target files, etc. - self.repository_updater = updater.Updater('test_repository', + self.repository_updater = updater.Updater(self.repository_name, self.repository_mirrors)