Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)