Beispiel #1
0
    def testCodeWords(self):
        create_code_db('project1', 'core', '3.0')

        parse_code('project1', 'core', '3.0', 'java')

        code_words =\
            get_project_code_words(Project.objects.get(dir_name='project1'))

        self.assertTrue('rootapplication' in code_words)
        self.assertTrue('tag2' in code_words)
        self.assertTrue('dog' not in code_words)
        self.assertEqual(10, len(code_words))
Beispiel #2
0
    def testCodeWords(self):
        create_code_db('project1', 'core', '3.0')

        parse_code('project1', 'core', '3.0', 'java')

        code_words =\
            get_project_code_words(Project.objects.get(dir_name='project1'))

        self.assertTrue('rootapplication' in code_words)
        self.assertTrue('tag2' in code_words)
        self.assertTrue('dog' not in code_words)
        self.assertEqual(10, len(code_words))
Beispiel #3
0
 def _build_code_words(self, load):
     # Build code words and put it in self.load
     load.code_words = \
         get_project_code_words(self.channel.project)
Beispiel #4
0
 def _build_code_words(self, load):
     # Build code words and put it in self.load
     load.code_words = \
         get_project_code_words(self.channel.project)
Beispiel #5
0
 def _build_code_words(self, load):
     # Build code words and put it in self.load
     load.code_words = \
         get_project_code_words(self.document.project_release.project)
Beispiel #6
0
 def _build_code_words(self, load):
     # Build code words and put it in self.load
     load.code_words = \
         get_project_code_words(self.document.project_release.project)