def test_unpublish_repo(self):
        # Setup
        os.makedirs(os.path.join(self.test_http_dir, self.repo.id))
        os.makedirs(os.path.join(self.test_https_dir, self.repo.id))

        # Test
        publish.unpublish_repo(self.repo, self.config)

        # Verify
        self.assertTrue(not os.path.exists(os.path.join(self.test_http_dir, self.repo.id)))
        self.assertTrue(not os.path.exists(os.path.join(self.test_https_dir, self.repo.id)))
    def test_unpublish_repo(self):
        # Setup
        os.makedirs(os.path.join(self.test_http_dir, self.repo.id))
        os.makedirs(os.path.join(self.test_https_dir, self.repo.id))

        # Test
        publish.unpublish_repo(self.repo, self.config)

        # Verify
        self.assertTrue(not os.path.exists(os.path.join(self.test_http_dir, self.repo.id)))
        self.assertTrue(not os.path.exists(os.path.join(self.test_https_dir, self.repo.id)))
Esempio n. 3
0
 def distributor_removed(self, repo, config):
     config.default_config = configuration.DEFAULT_CONFIG
     publish.unpublish_repo(repo, config)
Esempio n. 4
0
 def distributor_removed(self, repo, config):
     config.default_config = configuration.DEFAULT_CONFIG
     publish.unpublish_repo(repo, config)