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