Skip to content

Commit c8ca031

Browse files
committed
bug #6 : lint and code error for testing actions
1 parent 9f64423 commit c8ca031

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def main(args):
1717
foo = Foo()
1818
logging.info(foo.private_variable)
1919

20+
unused_variable = 5
21+
2022
temp = Celsius(37)
2123
temp.temperature = -30
2224
logging.info(temp.to_fahrenheit())

tests/test_temperature.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
def test_temperature():
77
temp = Celsius(37)
8-
assert temp.temperature == 37
8+
assert temp.temperature != 37
99
with pytest.raises(ValueError, match="Temperature below -273 is not possible"):
1010
temp.temperature = -300

0 commit comments

Comments
 (0)