mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
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:
@@ -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",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user