]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Apply review suggestions
authorStefan Scherfke <stefan@sofa-rockers.org>
Mon, 27 Oct 2025 14:47:36 +0000 (15:47 +0100)
committerStefan Scherfke <stefan@sofa-rockers.org>
Mon, 27 Oct 2025 14:47:36 +0000 (15:47 +0100)
alembic/config.py
docs/build/changelog.rst
docs/build/unreleased/1705.rst [new file with mode: 0644]
tests/test_command.py

index ad61b65888fab32932306ef7685fd7b01b873932..fb8dd8a6bafe740be175f1e1b76a53608521585c 100644 (file)
@@ -810,7 +810,7 @@ class CommandLine:
         ),
         "check_heads": (
             "-c",
-            "--check-if-heads",
+            "--check-heads",
             dict(
                 action="store_true",
                 help=(
index 286c5ddbfeba4edb82a2af11517316ed6dddcd0f..f411078d5c70327a420a3fde3b576f245189070f 100644 (file)
@@ -7,15 +7,6 @@ Changelog
     :version: 1.17.1
     :include_notes_from: unreleased
 
-    .. change::
-        :tags: usecase, commands
-        :tickets: 1705
-
-        Added ``--check-heads`` option to ``current`` command which
-        checks if all head revisions are applied to the database.
-        The command exists with a non-zero exit code if this is not the
-        case.
-
 .. changelog::
     :version: 1.17.0
     :released: October 11, 2025
diff --git a/docs/build/unreleased/1705.rst b/docs/build/unreleased/1705.rst
new file mode 100644 (file)
index 0000000..c65ce9e
--- /dev/null
@@ -0,0 +1,8 @@
+.. change::
+   :tags: usecase, commands
+   :tickets: 1705
+
+   Added ``--check-heads`` option to ``current`` command which
+   checks if all head revisions are applied to the database.
+   The command exists with a non-zero exit code if this is not the
+   case.
index 603cef45659155763a999f8655403db3a46771dc..401502fd13d04553e7454fdc5e877e303a983757 100644 (file)
@@ -346,9 +346,9 @@ class CurrentTest(_BufMixin, TestBase):
         with self._assert_lines(["a2", "b3"]):
             command.current(self.cfg)
 
-    def test_check_if_head_success(self):
+    def test_check_heads_success(self):
         """
-        "--check-if-head" succeeds if all head revisions are applied.
+        "--check-heads" succeeds if all head revisions are applied.
         """
         command.stamp(self.cfg, ())
         command.stamp(self.cfg, (self.a3.revision, self.b3.revision))
@@ -358,9 +358,9 @@ class CurrentTest(_BufMixin, TestBase):
     @pytest.mark.parametrize(
         "revs", [("a2",), ("a3",), ("b3",), ("a2", "b3"), ("a3", "b2")]
     )
-    def test_check_if_head_fail(self, revs):
+    def test_check_heads_fail(self, revs):
         """
-        "--check-if-head" succeeds if all head revisions are applied.
+        "--check-heads" succeeds if all head revisions are applied.
         """
         command.stamp(self.cfg, ())
         command.stamp(