|
2 | 2 | # coding: utf-8 |
3 | 3 |
|
4 | 4 |
|
5 | | -def test_get_monitors(mss): |
6 | | - monitors = mss.enum_display_monitors() |
7 | | - assert monitors is mss.monitors |
| 5 | +def test_get_monitors(sct): |
| 6 | + monitors = sct.enum_display_monitors() |
| 7 | + assert monitors is sct.monitors |
8 | 8 | assert monitors |
9 | 9 |
|
10 | 10 |
|
11 | | -def test_get_monitors_force(mss): |
12 | | - monitors = mss.enum_display_monitors(force=True) |
13 | | - assert monitors is mss.monitors |
| 11 | +def test_get_monitors_force(sct): |
| 12 | + monitors = sct.enum_display_monitors(force=True) |
| 13 | + assert monitors is sct.monitors |
14 | 14 | assert monitors |
15 | 15 |
|
16 | 16 |
|
17 | | -def test_keys_aio(mss): |
18 | | - all_monitors = mss.monitors[0] |
| 17 | +def test_keys_aio(sct): |
| 18 | + all_monitors = sct.monitors[0] |
19 | 19 | assert 'top' in all_monitors |
20 | 20 | assert 'left' in all_monitors |
21 | 21 | assert 'height' in all_monitors |
22 | 22 | assert 'width' in all_monitors |
23 | 23 |
|
24 | 24 |
|
25 | | -def test_keys_monitor_1(mss): |
26 | | - mon1 = mss.monitors[1] |
| 25 | +def test_keys_monitor_1(sct): |
| 26 | + mon1 = sct.monitors[1] |
27 | 27 | assert 'top' in mon1 |
28 | 28 | assert 'left' in mon1 |
29 | 29 | assert 'height' in mon1 |
30 | 30 | assert 'width' in mon1 |
31 | 31 |
|
32 | 32 |
|
33 | | -def test_dimensions(mss, is_travis): |
34 | | - mon = mss.monitors[1] |
| 33 | +def test_dimensions(sct, is_travis): |
| 34 | + mon = sct.monitors[1] |
35 | 35 | if not is_travis: |
36 | 36 | assert mon['width'] > 0 |
37 | 37 | assert mon['height'] > 0 |
38 | 38 |
|
39 | 39 |
|
40 | | -def test_dimensions_travis(mss, is_travis): |
41 | | - mon = mss.monitors[1] |
| 40 | +def test_dimensions_travis(sct, is_travis): |
| 41 | + mon = sct.monitors[1] |
42 | 42 | if is_travis: |
43 | 43 | assert mon['width'] == 1920 |
44 | 44 | assert mon['height'] == 1440 |
0 commit comments