Skip to content
Snippets Groups Projects
Commit ec764f26 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

pytests/test_panel_brightness.py: make range inclusive


If panel is set to 100% test would fail so include the top of the range.

Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
parent 48f32ce8
No related merge requests found
...@@ -10,4 +10,4 @@ def test_panel_brightness(): ...@@ -10,4 +10,4 @@ def test_panel_brightness():
else: else:
upper = 101 upper = 101
f = open(os.path.join(path, 'brightness')) f = open(os.path.join(path, 'brightness'))
assert int(f.read()) in range(0, upper) assert int(f.read()) in range(0, upper + 1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment