예제 #1
0
 def create_distributor_with_mocked_api_calls(self):
     distributor = FileDistributor()
     distributor.get_hosting_locations = Mock()
     distributor.get_hosting_locations.return_value = [
         self.target_dir,
     ]
     distributor.post_repo_publish = Mock()
     return distributor
예제 #2
0
 def test_post_repo_publish_not_implemented(self):
     distributor = FileDistributor()
     # ensure that this doesn't raise an error
     distributor.post_repo_publish(None, None)
예제 #3
0
 def test_post_repo_publish_not_implemented(self):
     distributor = FileDistributor()
     # ensure that this doesn't raise an error
     distributor.post_repo_publish(None, None)
예제 #4
0
 def create_distributor_with_mocked_api_calls(self):
     distributor = FileDistributor()
     distributor.get_hosting_locations = Mock()
     distributor.get_hosting_locations.return_value = [self.target_dir, ]
     distributor.post_repo_publish = Mock()
     return distributor