test: add argument annotation in parameter id for clear pytest logs

- sometimes arguments are re-ordered in the id written by pytest to sdtout
which makes identifying the failing case hard, this solves the issue for
one test function
This commit is contained in:
Arthur Meyre
2021-07-27 18:00:29 +02:00
parent d7c1f42363
commit 5e5d0477b1

View File

@@ -16,36 +16,36 @@ from hdk.hnumpy import tracing
@pytest.mark.parametrize(
"x",
[
pytest.param(EncryptedValue(Integer(64, is_signed=False)), id="Encrypted uint"),
pytest.param(EncryptedValue(Integer(64, is_signed=False)), id="x: Encrypted uint"),
pytest.param(
EncryptedValue(Integer(64, is_signed=True)),
id="Encrypted int",
id="x: Encrypted int",
),
pytest.param(
ClearValue(Integer(64, is_signed=False)),
id="Clear uint",
id="x: Clear uint",
),
pytest.param(
ClearValue(Integer(64, is_signed=True)),
id="Clear int",
id="x: Clear int",
),
],
)
@pytest.mark.parametrize(
"y",
[
pytest.param(EncryptedValue(Integer(64, is_signed=False)), id="Encrypted uint"),
pytest.param(EncryptedValue(Integer(64, is_signed=False)), id="y: Encrypted uint"),
pytest.param(
EncryptedValue(Integer(64, is_signed=True)),
id="Encrypted int",
id="y: Encrypted int",
),
pytest.param(
ClearValue(Integer(64, is_signed=False)),
id="Clear uint",
id="y: Clear uint",
),
pytest.param(
ClearValue(Integer(64, is_signed=True)),
id="Clear int",
id="y: Clear int",
),
],
)