Example #1
0
 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")'}
         )
     )
Example #2
0
 def test_is_testfile4(self):
     self.assertFalse(commits.is_testfile({"filename": "myproject/README.rst", "patch": ""}))
Example #3
0
 def test_is_testfile2(self):
     self.assertTrue(commits.is_testfile({"filename": "myproject/test_thingy.js"}))
Example #4
0
 def test_is_testfile3(self):
     self.assertFalse(commits.is_testfile({"filename": "myproject/testsettings.py"}))
Example #5
0
 def test_is_testfile1(self):
     self.assertTrue(commits.is_testfile({"filename": "myproject/tests.py"}))
Example #6
0
 def test_is_testfile4(self):
     self.assertFalse(commits.is_testfile(
             {'filename': 'myproject/README.rst',
              'patch': ''}))
Example #7
0
 def test_is_testfile3(self):
     self.assertFalse(commits.is_testfile(
             {'filename': 'myproject/testsettings.py'}))
Example #8
0
 def test_is_testfile2(self):
     self.assertTrue(commits.is_testfile(
             {'filename': 'myproject/test_thingy.js'}))
Example #9
0
 def test_is_testfile1(self):
     self.assertTrue(commits.is_testfile(
             {'filename': 'myproject/tests.py'}))