diff options
Diffstat (limited to 'tests/test_project.py')
-rw-r--r-- | tests/test_project.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_project.py b/tests/test_project.py index 4e710ae5..924a2459 100644 --- a/tests/test_project.py +++ b/tests/test_project.py | |||
@@ -77,7 +77,7 @@ class ReviewableBranchTests(unittest.TestCase): | |||
77 | 77 | ||
78 | # Start off with the normal details. | 78 | # Start off with the normal details. |
79 | rb = project.ReviewableBranch( | 79 | rb = project.ReviewableBranch( |
80 | fakeproj, fakeproj.config.GetBranch('work'), 'master') | 80 | fakeproj, fakeproj.config.GetBranch('work'), 'main') |
81 | self.assertEqual('work', rb.name) | 81 | self.assertEqual('work', rb.name) |
82 | self.assertEqual(1, len(rb.commits)) | 82 | self.assertEqual(1, len(rb.commits)) |
83 | self.assertIn('Del file', rb.commits[0]) | 83 | self.assertIn('Del file', rb.commits[0]) |
@@ -90,9 +90,9 @@ class ReviewableBranchTests(unittest.TestCase): | |||
90 | self.assertTrue(rb.date) | 90 | self.assertTrue(rb.date) |
91 | 91 | ||
92 | # Now delete the tracking branch! | 92 | # Now delete the tracking branch! |
93 | fakeproj.work_git.branch('-D', 'master') | 93 | fakeproj.work_git.branch('-D', 'main') |
94 | rb = project.ReviewableBranch( | 94 | rb = project.ReviewableBranch( |
95 | fakeproj, fakeproj.config.GetBranch('work'), 'master') | 95 | fakeproj, fakeproj.config.GetBranch('work'), 'main') |
96 | self.assertEqual(0, len(rb.commits)) | 96 | self.assertEqual(0, len(rb.commits)) |
97 | self.assertFalse(rb.base_exists) | 97 | self.assertFalse(rb.base_exists) |
98 | # Hard to assert anything useful about this. | 98 | # Hard to assert anything useful about this. |