Esempio 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))
Esempio 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))
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)