From c8ca031e618a362b6c82e27596b5fced52665b21 Mon Sep 17 00:00:00 2001 From: Fabien Danieau Date: Thu, 26 Jan 2023 18:19:00 +0100 Subject: [PATCH] bug #6 : lint and code error for testing actions --- main.py | 2 ++ tests/test_temperature.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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