From eb630c391f6ec9b49c499ed247a605ac9351f16f Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 17 Jan 2023 10:03:54 -0500 Subject: [PATCH] "Parametrize" in a way that gives us better test names. The old way just put sequence numbers into the name. This way puts expected capability strings in. --- integration/test_vectors.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/test_vectors.py b/integration/test_vectors.py index 27888e095..aff662c67 100644 --- a/integration/test_vectors.py +++ b/integration/test_vectors.py @@ -96,16 +96,14 @@ def test_convergence(convergence): @mark.slow -@mark.parametrize('case_and_expected', vectors.capabilities.items()) +@mark.parametrize('case,expected', vectors.capabilities.items()) @ensureDeferred -async def test_capability(reactor, request, alice, case_and_expected): +async def test_capability(reactor, request, alice, case, expected): """ The capability that results from uploading certain well-known data with certain well-known parameters results in exactly the previously computed value. """ - case, expected = case_and_expected - # rewrite alice's config to match params and convergence await reconfigure(reactor, request, alice, (1, case.params.required, case.params.total), case.convergence)