From: Stefan Scherfke Date: Mon, 27 Oct 2025 15:35:45 +0000 (+0100) Subject: Use testing.combinations() i/o pytest parametrize X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1739%2Fhead;p=thirdparty%2Fsqlalchemy%2Falembic.git Use testing.combinations() i/o pytest parametrize --- diff --git a/tests/test_command.py b/tests/test_command.py index 401502fd..b53b227e 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -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): """