From 57a2be84907cdc9ac626e11cab48c10bb3b22382 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 4 Mar 2020 14:06:53 -0500 Subject: [PATCH] Remove the duplication in the test suite and make this test pass again --- src/_zkapauthorizer/tests/test_client_resource.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_zkapauthorizer/tests/test_client_resource.py b/src/_zkapauthorizer/tests/test_client_resource.py index 8a24a2c..402ea78 100644 --- a/src/_zkapauthorizer/tests/test_client_resource.py +++ b/src/_zkapauthorizer/tests/test_client_resource.py @@ -130,6 +130,9 @@ from ..model import ( VoucherStore, memory_connect, ) +from ..controller import ( + NUM_TOKENS, +) from ..resource import ( from_configuration, ) @@ -763,9 +766,7 @@ class VoucherTests(TestCase): created=Equals(now), state=Equals(Redeemed( finished=now, - # Value duplicated from PaymentController.redeem default. - # Should do this better. - token_count=100, + token_count=NUM_TOKENS, )), ), ) -- GitLab