Renamed video_resolution to stream_resolution
This commit is contained in:
parent
36ee715fcb
commit
e30956d761
5 changed files with 15 additions and 15 deletions
|
|
@ -17,7 +17,7 @@ class TestCapture(unittest.TestCase):
|
|||
|
||||
expected_keys = [
|
||||
'image_resolution',
|
||||
'video_resolution',
|
||||
'stream_resolution',
|
||||
'numpy_resolution',
|
||||
]
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class TestCapture(unittest.TestCase):
|
|||
|
||||
def test_capture_videoport(self):
|
||||
connection = APIconnection(host="localhost", port=5000, api_ver="v1")
|
||||
resolution = connection.get_config()['video_resolution']
|
||||
resolution = connection.get_config()['stream_resolution']
|
||||
|
||||
for resize in [None, (640, 480)]:
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class TestCaptureMethods(unittest.TestCase):
|
|||
dims = resize
|
||||
else:
|
||||
if use_video_port:
|
||||
dims = camera.config['video_resolution']
|
||||
dims = camera.config['stream_resolution']
|
||||
else:
|
||||
dims = camera.config['image_resolution']
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ class TestUnencodedMethods(unittest.TestCase):
|
|||
dims = resize
|
||||
else:
|
||||
if use_video_port:
|
||||
dims = camera.config['video_resolution']
|
||||
dims = camera.config['stream_resolution']
|
||||
else:
|
||||
dims = camera.config['numpy_resolution']
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ class TestUnencodedMethods(unittest.TestCase):
|
|||
dims = resize
|
||||
else:
|
||||
if use_video_port:
|
||||
dims = camera.config['video_resolution']
|
||||
dims = camera.config['stream_resolution']
|
||||
else:
|
||||
dims = camera.config['numpy_resolution']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue