예제 #1
0
파일: tests.py 프로젝트: nens/githubinfo
 def test_is_testfile5(self):
     # Detect relevant changes in doctests.
     self.assertTrue(
         commits.is_testfile(
             {"filename": "myproject/something.rst", "patch": '@@ -1,6 +1,12 @@\n >>> print("reinout")'}
         )
     )
예제 #2
0
파일: tests.py 프로젝트: nens/githubinfo
 def test_is_testfile4(self):
     self.assertFalse(commits.is_testfile({"filename": "myproject/README.rst", "patch": ""}))
예제 #3
0
파일: tests.py 프로젝트: nens/githubinfo
 def test_is_testfile2(self):
     self.assertTrue(commits.is_testfile({"filename": "myproject/test_thingy.js"}))
예제 #4
0
파일: tests.py 프로젝트: nens/githubinfo
 def test_is_testfile3(self):
     self.assertFalse(commits.is_testfile({"filename": "myproject/testsettings.py"}))
예제 #5
0
파일: tests.py 프로젝트: nens/githubinfo
 def test_is_testfile1(self):
     self.assertTrue(commits.is_testfile({"filename": "myproject/tests.py"}))
예제 #6
0
 def test_is_testfile4(self):
     self.assertFalse(commits.is_testfile(
             {'filename': 'myproject/README.rst',
              'patch': ''}))
예제 #7
0
 def test_is_testfile3(self):
     self.assertFalse(commits.is_testfile(
             {'filename': 'myproject/testsettings.py'}))
예제 #8
0
 def test_is_testfile2(self):
     self.assertTrue(commits.is_testfile(
             {'filename': 'myproject/test_thingy.js'}))
예제 #9
0
 def test_is_testfile1(self):
     self.assertTrue(commits.is_testfile(
             {'filename': 'myproject/tests.py'}))