Make a patch release of a merged renovate pull request
This commit is contained in:
1 parent
fc51dd5bdb
commit
45f4ed2660
6 files changed
+90
-19
No files matched your search
@@ -11,6 +11,7 @@ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import check_flow # noqa: E402
|
||||
import packagist # noqa: E402
|
||||
import prune_branches # noqa: E402
|
||||
import release # noqa: E402
|
||||
import semver # noqa: E402
|
||||
|
||||
TAGS = ["v0.1.0", "v0.2.0", "v0.10.0", "not-a-version"]
|
||||
@@ -139,6 +140,19 @@ class HermesTokens(unittest.TestCase):
|
||||
self.assertTrue(self.hermes.lines(per_model, "Work", "2026-12-04", "", None)[0].endswith("| 4.000 | |"))
|
||||
|
||||
|
||||
class DependencyRelease(unittest.TestCase):
|
||||
def test_the_next_patch(self):
|
||||
self.assertEqual(release.next_patch((0, 5, 0)), (0, 5, 1))
|
||||
self.assertEqual(release.next_patch((1, 2, 9)), (1, 2, 10))
|
||||
self.assertIsNone(release.next_patch(None))
|
||||
|
||||
def test_an_open_release_takes_the_update_with_it(self):
|
||||
branches = ["production", "develop", "release/v0.4.0", "release/v0.5.0", "renovate/deps-1"]
|
||||
self.assertFalse(release.release_is_open(branches, (0, 5, 0)))
|
||||
self.assertTrue(release.release_is_open(branches, (0, 4, 0)))
|
||||
self.assertTrue(release.release_is_open(branches + ["release/v0.5.1"], (0, 5, 0)))
|
||||
|
||||
|
||||
class PackagistNotice(unittest.TestCase):
|
||||
def run_notice(self, answers):
|
||||
"""Runs notify() with fake answers per endpoint (a status number, or an HTTP error code as a string)."""
|
||||
|
||||
Reference in new issue
Block a user