]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Use testing.combinations() i/o pytest parametrize 1739/head
authorStefan Scherfke <stefan@sofa-rockers.org>
Mon, 27 Oct 2025 15:35:45 +0000 (16:35 +0100)
committerStefan Scherfke <stefan@sofa-rockers.org>
Mon, 27 Oct 2025 15:35:45 +0000 (16:35 +0100)
tests/test_command.py

index 401502fd13d04553e7454fdc5e877e303a983757..b53b227ed5ddfd04bc04522fc3d511989ccfd133 100644 (file)
@@ -10,7 +10,6 @@ import re
 import shutil
 from typing import cast
 
-import pytest
 from sqlalchemy import exc as sqla_exc
 from sqlalchemy import text
 from sqlalchemy import VARCHAR
@@ -355,8 +354,13 @@ class CurrentTest(_BufMixin, TestBase):
         with self._assert_lines(["a3", "b3"]):
             command.current(self.cfg, check_heads=True)
 
-    @pytest.mark.parametrize(
-        "revs", [("a2",), ("a3",), ("b3",), ("a2", "b3"), ("a3", "b2")]
+    @testing.combinations(
+        ["a2"],
+        ["a3"],
+        ["b3"],
+        ["a2", "b3"],
+        ["a3", "b2"],
+        argnames="revs",
     )
     def test_check_heads_fail(self, revs):
         """