Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit 246b751

Browse files
committed
fix test console scripts
1 parent 7d3c652 commit 246b751

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

.travis.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: generic
2-
fast_finish: true
32
#sudo: required
3+
#dist: xenial
4+
group: travis_latest
5+
6+
git:
7+
depth: 3
8+
quiet: true
49

510
env:
611
- TRAVIS_PYTHON_VERSION=3.6
@@ -9,12 +14,6 @@ env:
914
os:
1015
# - linux # ffmpeg is not yet ready in Travis xenial
1116
- osx
12-
13-
dist: xenial
14-
group: travis_latest
15-
16-
git:
17-
depth: 3
1817

1918
#addons:
2019
# apt:
@@ -41,7 +40,7 @@ before_install:
4140
brew install ffmpeg > /dev/null;
4241
fi
4342

44-
install: pip -q install -e .[tests]
43+
install: pip install -e .[tests]
4544

4645
script:
4746
- pytest -sv

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ console_scripts =
5656

5757
[flake8]
5858
max-line-length = 132
59-
exclude = .git,.eggs/__pycache__,doc/,docs/,build/,dist/,archive/
59+
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/
6060

6161
[coverage:run]
6262
cover_pylib = false
@@ -72,5 +72,9 @@ exclude_lines =
7272
RuntimeError
7373
NotImplementedError
7474
ImportError
75+
KeyError
7576
FileNotFoundError
7677
CalledProcessError
78+
logging.warning
79+
ValueError
80+
TypeError

tests/test_microphone.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ def test_microphone():
2929
assert S.streams[s].video_kbps == 500
3030

3131

32+
@pytest.mark.usefixtures("listener")
3233
@pytest.mark.skipif(CI, reason="Many CI's don't have audio hardware")
3334
def test_microphone_stream():
34-
S = pls.Microphone(inifn, 'localhost', image=IMGFN)
35+
S = pls.Microphone(inifn, 'localhost-test', image=IMGFN)
3536
print('press q in terminal to proceed')
3637
S.golive()
3738

tests/test_screen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def test_screenshare():
2727
assert S.streams[s].video_kbps == 1800
2828

2929

30+
@pytest.mark.usefixtures("listener")
3031
@pytest.mark.skipif(CI, reason="Many CI's don't have video hardware")
3132
def test_screenshare_stream():
32-
S = pls.Screenshare(inifn, 'localhost')
33+
S = pls.Screenshare(inifn, 'localhost-test')
3334
print('press q in terminal to proceed')
3435
S.golive()
3536

tests/test_webcam.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ def test_webcam():
2929
assert S.streams[s].video_kbps == 1800
3030

3131

32+
@pytest.mark.usefixtures("listener")
3233
@pytest.mark.skipif(CI, reason="This is an interactive test")
3334
def test_webcam_stream():
34-
S = pls.Webcam(inifn, 'localhost')
35+
S = pls.Webcam(inifn, 'localhost-test')
3536
print('press q in terminal to proceed')
3637
S.golive()
3738

0 commit comments

Comments
 (0)