Example #1
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 = []
Example #2
0
 def tearDown(self):
     Project.objects.all().delete()
     CodeElementKind.objects.all().delete()
     cu.clear_cache()
     DEBUG_LOG.clear()