Normalise pytest syntax

This commit is contained in:
Hugo Osvaldo Barrera 2025-08-29 12:48:42 +02:00
parent aab70e9fb0
commit a4d4bf8fd1
6 changed files with 7 additions and 7 deletions

View file

@ -40,7 +40,7 @@ class TestCalDAVStorage(DAVStorageTests):
# The `arg` param is not named `item_types` because that would hit
# https://bitbucket.org/pytest-dev/pytest/issue/745/
@pytest.mark.parametrize(
"arg,calls_num",
("arg", "calls_num"),
[
(("VTODO",), 1),
(("VEVENT",), 1),

View file

@ -191,7 +191,7 @@ def test_null_collection_with_named_collection(tmpdir, runner):
@pytest.mark.parametrize(
"a_requires,b_requires",
("a_requires", "b_requires"),
[
(True, True),
(True, False),

View file

@ -358,7 +358,7 @@ def test_ident_conflict(tmpdir, runner):
@pytest.mark.parametrize(
"existing,missing",
("existing", "missing"),
[
("foo", "bar"),
("bar", "foo"),
@ -402,7 +402,7 @@ def test_no_configured_pairs(tmpdir, runner, cmd):
@pytest.mark.parametrize(
"resolution,expect_foo,expect_bar",
("resolution", "expect_foo", "expect_bar"),
[(["command", "cp"], "UID:lol\nfööcontent", "UID:lol\nfööcontent")],
)
def test_conflict_resolution(tmpdir, runner, resolution, expect_foo, expect_bar):

View file

@ -9,7 +9,7 @@ missing = object()
@pytest.mark.parametrize(
"shortcuts,expected",
("shortcuts", "expected"),
[
(
["from a"],

View file

@ -437,7 +437,7 @@ async def test_partial_sync_revert():
assert items(a) == {"UID:2"}
@pytest.mark.parametrize("sync_inbetween", (True, False))
@pytest.mark.parametrize("sync_inbetween", [True, False])
@pytest.mark.asyncio
async def test_ident_conflict(sync_inbetween):
a = MemoryStorage()

View file

@ -58,7 +58,7 @@ async def test_repair_unsafe_uids(uid):
@pytest.mark.parametrize(
"uid,href", [("b@dh0mbr3", "perfectly-fine"), ("perfectly-fine", "b@dh0mbr3")]
("uid", "href"), [("b@dh0mbr3", "perfectly-fine"), ("perfectly-fine", "b@dh0mbr3")]
)
def test_repair_unsafe_href(uid, href):
item = Item(f"BEGIN:VCARD\nUID:{uid}\nEND:VCARD")