diff options
author | Mike Frysinger <vapier@google.com> | 2020-11-16 22:56:35 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-11-17 04:29:09 +0000 |
commit | e283b95cf2c95befcb2b67259fd8877c1c36d25e (patch) | |
tree | 8794fda555f97c30337bf2dc7a3cad9aa62c88d2 /tests/test_project.py | |
parent | dc5c4d1d117304345ebec71a852184859883e1eb (diff) | |
download | git-repo-e283b95cf2c95befcb2b67259fd8877c1c36d25e.tar.gz |
tests: use new main branch
Now that we clone "main" by default, use that for our local test.
Change-Id: Ib8420074bdfabfcb9d5252a3a0ecd3d852ca36e8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/288422
Reviewed-by: Jonathan Nieder <jrn@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
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. |