From 977ed67b535a1e5f06aafd5af63e00f0bd326c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Charlier?= <clement.charlier@student-cs.fr> Date: Thu, 13 Oct 2022 18:21:30 +0200 Subject: [PATCH] mod --- calculator/test_calculator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calculator/test_calculator.py b/calculator/test_calculator.py index e2c028e..9388945 100644 --- a/calculator/test_calculator.py +++ b/calculator/test_calculator.py @@ -3,7 +3,7 @@ Test module for the calculator module. """ import pytest from calculator.calculator import Calculator -from calculator.operators import STANDARD_OPERATORS, Operator +from calculator.operators import STANDARD_OPERATORS @pytest.fixture(scope="module", name="setup") @@ -49,10 +49,11 @@ def test_evaluation(setup): """ Test the evaluation. """ - plus, minus, times, divide, calc = setup + _, _, _, _, calc = setup assert calc("1 + 2") == 3 assert calc("2 * 2") == 4 assert calc('4 / 2') == 2 assert calc("5 - 3") == 2 # À toi de tester la fonction __call__ de Calculator. # Essaie de tester tous les opérateurs. + -- GitLab