File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
python-version : ' 3.x'
17
17
18
- - run : pip install .[tests, lint]
18
+ - run : pip install .[lint]
19
19
20
20
- run : flake8
21
21
- run : mypy . src
22
-
23
- - run : pytest
24
-
25
-
26
- windows :
27
- runs-on : windows-latest
28
- steps :
29
- - uses : actions/checkout@v2
30
- - uses : actions/setup-python@v2
31
- with :
32
- python-version : ' 3.x'
33
-
34
- - run : pip install .[tests]
35
-
36
- - run : pytest
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
import os
3
3
4
- import mozloc
5
-
6
4
is_ci = os .environ .get ("CI" , "" ).lower () == "true"
7
5
8
6
9
7
@pytest .mark .skipif (is_ci , reason = "CI doesn't usually have WiFi" )
10
8
def test_nm_loc ():
11
9
10
+ mozloc = pytest .importorskip ('mozloc' )
12
11
loc = mozloc .get_cli ()
13
12
14
13
assert isinstance (loc , list )
15
14
assert isinstance (loc [0 ], dict )
16
15
assert - 130 < int (loc [0 ]["signalStrength" ]) < 0 , "impossible RSSI"
17
16
18
17
18
+ @pytest .mark .skipif (is_ci , reason = "CI doesn't usually have WiFi" )
19
19
def test_nm_connection ():
20
20
21
+ mozloc = pytest .importorskip ('mozloc' )
21
22
assert mozloc .cli_config_check ()
You can’t perform that action at this time.
0 commit comments