示例#1
0
文件: tests.py 项目: bartdag/recodoc2
 def setUp(self):
     logging.basicConfig(level=logging.WARNING)
     create_code_element_kinds()
     self.project = create_project_db('Project 1', 'http://www.example1.com',
             'project1')
     create_release_db('project1', '3.0', True)
     create_release_db('project1', '3.1')
示例#2
0
 def setUp(self):
     logging.basicConfig(level=logging.WARNING)
     create_code_element_kinds()
     self.project = create_project_db('Project 1',
                                      'http://www.example1.com', 'project1')
     create_release_db('project1', '3.0', True)
     create_release_db('project1', '3.1')
示例#3
0
 def setUp(self):
     logging.basicConfig(level=logging.WARNING)
     settings.PROJECT_FS_ROOT = settings.PROJECT_FS_ROOT_TEST
     create_project_local('project1')
     create_project_db('Project 1', 'http://www.example1.com', 'project1')
     create_release_db('project1', '3.0', True)
     create_release_db('project1', '3.1')
     create_code_element_kinds()
示例#4
0
文件: tests.py 项目: bartdag/recodoc2
 def setUp(self):
     logging.basicConfig(level=logging.WARNING)
     settings.PROJECT_FS_ROOT = settings.PROJECT_FS_ROOT_TEST
     create_project_local('project1')
     create_project_db('Project 1', 'http://www.example1.com', 'project1')
     create_release_db('project1', '3.0', True)
     create_release_db('project1', '3.1')
     create_code_element_kinds()
示例#5
0
 def setUp(self):
     DEBUG_LOG.clear()
     cu.clear_cache()
     self.pname = 'project1'
     self.release = '3.0'
     logging.basicConfig(level=logging.WARNING)
     create_code_element_kinds()
     self.project = create_project_db('Project 1',
             'http://www.example1.com', self.pname)
     self.releasedb = create_release_db(self.pname, self.release, True)
     create_release_db(self.pname, '3.1')
     self.ann_kind = CodeElementKind.objects.get(kind='annotation')
     self.class_kind = CodeElementKind.objects.get(kind='class')
     self.enum_kind = CodeElementKind.objects.get(kind='enumeration')
     self.method_kind = CodeElementKind.objects.get(kind='method')
     self.ann_field_kind = CodeElementKind.objects.get(
             kind='annotation field')
     self.enum_value_kind = CodeElementKind.objects.get(
             kind='enumeration value')
     self.field_kind = CodeElementKind.objects.get(kind='field')
     self.code_refs = []
     self.code_snippets = []
示例#6
0
 def handle_noargs(self, **options):
     create_code_element_kinds()
示例#7
0
文件: tests.py 项目: bartdag/recodoc2
 def testCreateCodeElementKinds(self):
     create_code_element_kinds()
     kind_count = CodeElementKind.objects.all().count()
     self.assertEqual(30, kind_count)
示例#8
0
 def setUp(self):
     ca.create_code_element_kinds()
     self.kinds = ca.get_default_kind_dict()
     self.strategies = ca.get_java_strategies()
示例#9
0
 def handle_noargs(self, **options):
     create_code_element_kinds()
示例#10
0
 def testCreateCodeElementKinds(self):
     create_code_element_kinds()
     kind_count = CodeElementKind.objects.all().count()
     self.assertEqual(30, kind_count)
示例#11
0
 def setUp(self):
     ca.create_code_element_kinds()
     self.kinds = ca.get_default_kind_dict()
     self.strategies = ca.get_java_strategies()