Skip to content
Snippets Groups Projects
Commit c15c5e03 authored by Louis Vauterin's avatar Louis Vauterin
Browse files

fix: fix the calculator

parent 1858db49
No related branches found
No related tags found
No related merge requests found
Pipeline #46408 failed
...@@ -3,7 +3,7 @@ Test module for the calculator module. ...@@ -3,7 +3,7 @@ Test module for the calculator module.
""" """
import pytest import pytest
from calculator.calculator import Calculator from calculator.calculator import Calculator
from calculator.operators import STANDARD_OPERATORS, Operator from calculator.operators import STANDARD_OPERATORS
@pytest.fixture(scope="module", name="setup") @pytest.fixture(scope="module", name="setup")
...@@ -49,7 +49,7 @@ def test_evaluation(setup): ...@@ -49,7 +49,7 @@ def test_evaluation(setup):
""" """
Test the evaluation. Test the evaluation.
""" """
plus, minus, times, divide, calc = setup _, _, _, divide, calc = setup
assert calc("1 + 2") == 3 assert calc("1 + 2") == 3
assert calc("5 - 1") == 4 assert calc("5 - 1") == 4
assert calc("3 * 2") == 6 assert calc("3 * 2") == 6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment