diff --git a/calculator/test_calculator.py b/calculator/test_calculator.py index e2c028ec5ba8e6cd62ed317d125337e65ec6a7f6..938894534459147bca1cce4e3576f4a16210af21 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. +