diff --git a/main.py b/main.py index cd61be7..6389eb0 100644 --- a/main.py +++ b/main.py @@ -17,6 +17,8 @@ def main(args): foo = Foo() logging.info(foo.private_variable) + unused_variable = 5 + temp = Celsius(37) temp.temperature = -30 logging.info(temp.to_fahrenheit()) diff --git a/tests/test_temperature.py b/tests/test_temperature.py index 53755bc..dadc265 100644 --- a/tests/test_temperature.py +++ b/tests/test_temperature.py @@ -5,6 +5,6 @@ def test_temperature(): temp = Celsius(37) - assert temp.temperature == 37 + assert temp.temperature != 37 with pytest.raises(ValueError, match="Temperature below -273 is not possible"): temp.temperature = -300