Skip to content

Commit 6e5d742

Browse files
committed
added stub for testing #84
1 parent 3f59ae9 commit 6e5d742

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

test/stub/picamera/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from picamera.exc import PiCameraError
2+
from picamera.camera import PiCamera
3+

test/stub/picamera/camera.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from test.picamera_mock import PiCameraMock as PiCamera
2+
3+
class array(object):
4+
def __init(self):
5+
pass

test/stub/picamera/exc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class PiCameraError(Exception):
2+
def __init__(self):
3+
pass

test/stub/pyaudio/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class PyAudio(object):
2+
def __init__(self):
3+
pass
4+
5+
def get_sample_size(mode):
6+
return 10000
7+
8+
def get_format_from_width(**kwargs):
9+
return 0
10+
11+
def open(**kwargs):
12+
pass
13+
14+
paInt16 = 0
15+
16+

0 commit comments

Comments
 (0)