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 1515 with :
1616 python-version : ' 3.x'
1717
18- - run : pip install .[tests, lint]
18+ - run : pip install .[lint]
1919
2020 - run : flake8
2121 - 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 11import pytest
22import os
33
4- import mozloc
5-
64is_ci = os .environ .get ("CI" , "" ).lower () == "true"
75
86
97@pytest .mark .skipif (is_ci , reason = "CI doesn't usually have WiFi" )
108def test_nm_loc ():
119
10+ mozloc = pytest .importorskip ('mozloc' )
1211 loc = mozloc .get_cli ()
1312
1413 assert isinstance (loc , list )
1514 assert isinstance (loc [0 ], dict )
1615 assert - 130 < int (loc [0 ]["signalStrength" ]) < 0 , "impossible RSSI"
1716
1817
18+ @pytest .mark .skipif (is_ci , reason = "CI doesn't usually have WiFi" )
1919def test_nm_connection ():
2020
21+ mozloc = pytest .importorskip ('mozloc' )
2122 assert mozloc .cli_config_check ()
You can’t perform that action at this time.
0 commit comments