importpytestfromfuelimportconvert, gauge@pytest.mark.parametrize("input, expected", [ ("3/4", 75), ],)deftest_convert(input, expected):
assertconvert(input) ==expected@pytest.mark.parametrize("input", ["10/3", ],)deftest_convert_value_error(input):
withpytest.raises(ValueError):
assertconvert(input)
@pytest.mark.parametrize("input", ["0/0" ],)deftest_convert_zero_division(input):
withpytest.raises(ZeroDivisionError):
convert(input)
@pytest.mark.parametrize("input,expected", [ (75, "75%"), (33, "33%"), (67, "67%"), (0, "E"), (1, "E"), (100, "F"), (99, "F"), (101, "F"), (-1, "E"), ],)deftest_gauge(input, expected):
assertgauge(input) ==expected
Preconditions
test_fuel.py, which passes the check50 validation:Steps to reproduce:
test_fuel.py:check50 cs50/problems/2022/python/tests/fuelExpected result
Actual result
The problem description for PSET 5 Refueling has the following description:

The check50 validation fails at step 2
:( correct fuel.py passes all test_fuel checksIf user attempts to add a test for the requirementthe nearest int between 0 and 100, inclusive.:When the test is enabled:

When skipping the test:
