示例#1
0
 def test_sorted_tags(self):
     app = yield from get_application('test')
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = list(loader.testmodules())
     self.assertTrue(modules)
     tags = [m[0] for m in modules]
     self.assertEqual(tags, sorted(tags))
示例#2
0
文件: loader.py 项目: robgil/pulsar
 def test_sorted_tags(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = list(loader.testmodules())
     self.assertTrue(modules)
     tags = [m[0] for m in modules]
     self.assertEqual(tags, sorted(tags))
示例#3
0
文件: loader.py 项目: LoganTK/pulsar
 def test_sorted_tags(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = list(loader.testmodules())
     self.assertTrue(modules)
     tags = [m[0] for m in modules]
     self.assertEqual(tags, sorted(tags))
示例#4
0
 def test_load_exclude(self):
     app = yield from get_application('test')
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(
         exclude_tags=('taskqueue', 'apps.pubsub')))
     self.assertTrue(modules)
     for module in modules:
         self.assertTrue('taskqueue' not in module)
         self.assertTrue('apps.pubsub' not in module)
示例#5
0
 def test_load_exclude(self):
     app = pulsar.get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(
         loader.testmodules(exclude_tags=('taskqueue', 'apps.pubsub')))
     self.assertTrue(modules)
     for module in modules:
         self.assertTrue('taskqueue' not in module)
         self.assertTrue('apps.pubsub' not in module)
示例#6
0
 def test_load_exclude(self):
     app = pulsar.get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(exclude_tags=
                         ('taskqueue', 'apps.pubsub')))
     self.assertTrue(modules)
     for module in modules:
         self.assertTrue('taskqueue' not in module)
         self.assertTrue('apps.pubsub' not in module)
示例#7
0
 def test_load_pulsar_tests(self):
     app = yield from get_application('test')
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     self.assertEqual(loader.modules, [('tests', None, None),
                                       ('examples', 'tests', None),
                                       ('examples', 'test_*', None)])
     modules = dict(loader.testmodules())
     self.assertTrue(modules)
     self.assertFalse('httpbin' in modules)
     self.assertTrue('echo' in modules)
     self.assertTrue('djchat' in modules)
     self.assertTrue('djchat.app' in modules)
     self.assertTrue('djchat.pulse' in modules)
     self.assertTrue('async' in modules)
     self.assertTrue('suite.single' in modules)
示例#8
0
文件: loader.py 项目: robgil/pulsar
 def test_load_pulsar_tests(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     self.assertEqual(loader.modules, [('tests', None, None),
                                       ('examples', 'tests', None),
                                       ('examples', 'test_*', None)])
     modules = dict(loader.testmodules())
     self.assertTrue(modules)
     self.assertFalse('httpbin' in modules)
     self.assertTrue('echo' in modules)
     self.assertTrue('djangoapp' in modules)
     self.assertTrue('djangoapp.app' in modules)
     self.assertTrue('djangoapp.pulse' in modules)
     self.assertTrue('async' in modules)
     self.assertTrue('suite.single' in modules)
示例#9
0
文件: loader.py 项目: LoganTK/pulsar
 def test_load_pulsar_tests(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     self.assertEqual(loader.modules, [('tests', None, None),
                                       ('examples', 'tests', None),
                                       ('examples', 'test_*', None)])
     modules = dict(loader.testmodules())
     self.assertTrue(modules)
     self.assertFalse('httpbin' in modules)
     self.assertTrue('echo' in modules)
     self.assertTrue('djangoapp' in modules)
     self.assertTrue('djangoapp.app' in modules)
     self.assertTrue('djangoapp.pulse' in modules)
     self.assertTrue('async' in modules)
     self.assertTrue('suite.single' in modules)
示例#10
0
 def test_load_tags1(self):
     app = yield from get_application('test')
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(('suite',)))
     self.assertEqual(len(modules), 6)
示例#11
0
文件: loader.py 项目: robgil/pulsar
 def __test_djangoapp_tags(self):
     # TODO Fix this
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(('djangoapp', )))
     self.assertEqual(len(modules), 3)
示例#12
0
文件: loader.py 项目: robgil/pulsar
 def test_load_tags1(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(('suite', )))
     self.assertEqual(len(modules), 6)
示例#13
0
文件: loader.py 项目: LoganTK/pulsar
 def __test_djangoapp_tags(self):
     #TODO Fix this
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(('djangoapp',)))
     self.assertEqual(len(modules), 3)
示例#14
0
文件: loader.py 项目: LoganTK/pulsar
 def test_load_tags1(self):
     app = get_actor().app
     loader = TestLoader(app.root_dir, app.cfg.modules, app.runner)
     modules = dict(loader.testmodules(('suite',)))
     self.assertEqual(len(modules), 6)