diff options
author | Sergiy Belozorov <sergiyb@chromium.org> | 2024-03-04 19:48:52 +0100 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-03-04 18:50:24 +0000 |
commit | 96edb9b573d6c58b1990090c467ce0c2809bc0b1 (patch) | |
tree | 18a10da00d18ec0e287a6d4c69a0764becd177d9 /tests/test_project.py | |
parent | 5554572f02537b8646139d59ab520e59e1d5f7b3 (diff) | |
download | git-repo-96edb9b573d6c58b1990090c467ce0c2809bc0b1.tar.gz |
upload: Add support for setting patchset description
Bug: 308467447
Change-Id: I7abcbc98131b826120fc9ab85d5b889f90db4b0a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355968
Tested-by: Sergiy Belozorov <sergiyb@chromium.org>
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Sergiy Belozorov <sergiyb@chromium.org>
Diffstat (limited to 'tests/test_project.py')
-rw-r--r-- | tests/test_project.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_project.py b/tests/test_project.py index 6dc071bd..de26e91a 100644 --- a/tests/test_project.py +++ b/tests/test_project.py | |||
@@ -107,6 +107,16 @@ class ReviewableBranchTests(unittest.TestCase): | |||
107 | self.assertTrue(rb.date) | 107 | self.assertTrue(rb.date) |
108 | 108 | ||
109 | 109 | ||
110 | class ProjectTests(unittest.TestCase): | ||
111 | """Check Project behavior.""" | ||
112 | |||
113 | def test_encode_patchset_description(self): | ||
114 | self.assertEqual( | ||
115 | project.Project._encode_patchset_description("abcd00!! +"), | ||
116 | "abcd00%21%21_%2b", | ||
117 | ) | ||
118 | |||
119 | |||
110 | class CopyLinkTestCase(unittest.TestCase): | 120 | class CopyLinkTestCase(unittest.TestCase): |
111 | """TestCase for stub repo client checkouts. | 121 | """TestCase for stub repo client checkouts. |
112 | 122 | ||