Exemplo n.º 1
0
 def test_module_exists(self):
     """
     Ensure module_exists function is working correctly.
     """
     self._msg('test', 'test_module_exists', first=True)
     modules = (
         'os',
         'os.path',
         're',
         'hashlib',
         'datetime',
         'logging',
         'pickle',
     )
     for m in modules:
         self.assertTrue(
             module_exists(m),
             msg="standard python module should be importable: %s" % m)
         self._msg('exists', m)
     nonexistent_modules = (
         'anonexistentmodule',
         'anotherbogusmod',
         'doesnotexist.one.two.three',
     )
     for m in nonexistent_modules:
         self.assertFalse(module_exists(m),
                          msg="module should not be importable: %s" % m)
         self._msg('does not exist', m)
Exemplo n.º 2
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'helpers.txt',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 3
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'orders',
         'orders.models',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 4
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'site_attachments',
         'site_attachments.migrations',
         'site_attachments.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 5
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'reports',
         'reports.urls',
         'reports.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 6
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = (
         'helpers.files',
         'helpers.files.settings',
         'helpers.files.storage',
         'helpers.files.utils',
     )
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 7
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'services',
         'services.migrations',
         'services.admin',
         'services.urls',
         'services.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 8
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'testing',
         'testing.management',
         'testing.management.commands',
         'testing.views',
         'testing.helper',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 9
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'chowpad',
         'chowpad.settings',
         #'chowpad.test_settings',
         #'chowpad.urls',  #FIXME: should pass
         #'chowpad.wsgi',
     ]
     for a in apps:
         print a
         self.assertTrue(module_exists(a))
Exemplo n.º 10
0
 def test_module_imports(self):
     """
     Ensure modules of the returned_items app are importable.
     """
     apps = [
         'returned_items',
         'returned_items.migrations',
         'returned_items.admin',
         'returned_items.forms',
         'returned_items.urls',
         'returned_items.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 11
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'menu',
         #'menu.urls', # FIXME
         #'menu.views',
         'menu.models',
         'menu.management',
         # 'menu.management.rebuild_starter_db' # FIXME
     ]
     for a in apps:
         print a
         self.assertTrue(module_exists(a))
Exemplo n.º 12
0
 def test_module_imports(self):
     """
     Ensure Parts modules are importable.
     """
     apps = [
         'parts',
         'parts.migrations',
         'parts.forms',
         'parts.admin',
         #'parts.models',
         'parts.urls',
         'parts.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 13
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'xml_helpers',
         'xml_helpers.migrations',
         'xml_helpers.lib',
         'xml_helpers.management',
         'xml_helpers.management.commands',
         'xml_helpers.management.commands.build_mongo_extra_data_indices',
         'xml_helpers.management.commands.clear_redis_sessions',
         'xml_helpers.management.commands.read_all_commissioned_sites',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 14
0
 def test_module_imports(self):
     """
     Ensure Customers modules are importable.
     """
     apps = [
         'customers',
         'customers.migrations',
         'customers.management',
         'customers.management.commands',
         'customers.management.commands.load_customers_to_redis',
         'customers.forms',
         'customers.admin',
         'customers.models',
         'customers.urls',
         'customers.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 15
0
 def test_module_imports(self):
     """
     Ensure that commissioned site modules are importable.
     """
     apps = [
         'commissioned_sites',
         'commissioned_sites.admin',
         'commissioned_sites.forms',
         'commissioned_sites.migrations',
         'commissioned_sites.templatetags',
         'commissioned_sites.templatetags.clean_address',
         'commissioned_sites.templatetags.sharepoint_url',
         'commissioned_sites.models',
         'commissioned_sites.settings',
         'commissioned_sites.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))
Exemplo n.º 16
0
 def test_module_imports(self):
     """
     Ensure modules are importable.
     """
     apps = [
         'return_merchandise_authorizations',
         'return_merchandise_authorizations.migrations',
         'return_merchandise_authorizations.templatetags',
         'return_merchandise_authorizations.templatetags.admin_url',
         'return_merchandise_authorizations.templatetags.phase',
         'return_merchandise_authorizations.templatetags.sharepoint_rma_url',
         'return_merchandise_authorizations.acl',
         'return_merchandise_authorizations.admin',
         'return_merchandise_authorizations.context_processors',
         'return_merchandise_authorizations.forms',
         'return_merchandise_authorizations.lib',
         'return_merchandise_authorizations.models',
         'return_merchandise_authorizations.settings',
         'return_merchandise_authorizations.urls',
         'return_merchandise_authorizations.views',
     ]
     for a in apps:
         self.assertTrue(module_exists(a))