fix: survive the screen library's sys.exit, copy all modules into the image, fit -10 degree readouts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
ae8c17d8d5
commit
09f78d1a63
8 files changed
+78
-8
No files matched your search
@@ -137,3 +137,10 @@ def test_fewer_than_twelve_hours_still_renders():
|
||||
|
||||
def test_unknown_weather_code_renders():
|
||||
assert view(value=weather(code=999)).render(NOW).size == (480, 320)
|
||||
|
||||
|
||||
def test_two_digit_negative_temps_stay_clear_of_the_divider():
|
||||
for temp in (-10.4, -19.6):
|
||||
img = view(value=weather(temp=temp)).render(NOW)
|
||||
box = ink_bbox(img, (84, 180, 204, 236))
|
||||
assert box is not None and box[2] < 200, temp
|
||||
Reference in new issue
Block a user