Skip to content

Commit be89925

Browse files
committed
ci imports
1 parent 61d3804 commit be89925

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,7 @@ jobs:
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

src/mozloc/tests/test_netman.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
import pytest
22
import os
33

4-
import mozloc
5-
64
is_ci = os.environ.get("CI", "").lower() == "true"
75

86

97
@pytest.mark.skipif(is_ci, reason="CI doesn't usually have WiFi")
108
def 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")
1919
def test_nm_connection():
2020

21+
mozloc = pytest.importorskip('mozloc')
2122
assert mozloc.cli_config_check()

0 commit comments

Comments
 (0)