Exemple #1
0
 def test_check_package_missing_init(self):
     init = os.path.join(self.test_module, '__init__.py')
     os.makedirs(self.test_module)
     assert not os.path.isfile(init)
     check_package(self.test_module)
     assert os.path.isfile(init)
Exemple #2
0
 def test_check_package_non_existant(self):
     assert not os.path.exists(self.test_module)
     check_package(self.test_module)
     assert not os.path.exists(self.test_module)
Exemple #3
0
 def test_check_package_bad_name(self):
     self.test_module = os.path.join(tc.STAGING, '.module')
     os.makedirs(self.test_module)
     with pytest.raises(PakitError):
         check_package(self.test_module)