Mercurial > hg > auditok
comparison tests/test_cmdline_util.py @ 331:9741b52f194a
Reformat code and documentation
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Thu, 24 Oct 2019 20:49:51 +0200 |
parents | 9907db0843cb |
children | 9f17aa9a4018 |
comparison
equal
deleted
inserted
replaced
330:9665dc53c394 | 331:9741b52f194a |
---|---|
73 False, | 73 False, |
74 ), | 74 ), |
75 record_plot=(None, None, True, None, None, None, True), | 75 record_plot=(None, None, True, None, None, None, True), |
76 record_save_image=(None, None, False, "image.png", None, None, True), | 76 record_save_image=(None, None, False, "image.png", None, None, True), |
77 int_use_channel=("stream.ogg", None, False, None, "1", 1, False), | 77 int_use_channel=("stream.ogg", None, False, None, "1", 1, False), |
78 save_detections_as=("stream.ogg", "{id}.wav", False, None, None, None, False) | 78 save_detections_as=( |
79 "stream.ogg", | |
80 "{id}.wav", | |
81 False, | |
82 None, | |
83 None, | |
84 None, | |
85 False, | |
86 ), | |
79 ) | 87 ) |
80 def test_make_kwargs( | 88 def test_make_kwargs( |
81 self, | 89 self, |
82 save_stream, | 90 save_stream, |
83 save_detections_as, | 91 save_detections_as, |
110 0.3, | 118 0.3, |
111 False, | 119 False, |
112 False, | 120 False, |
113 55, | 121 55, |
114 ) | 122 ) |
115 misc = (False, False, None, True, None, "TIME_FORMAT", "TIMESTAMP_FORMAT") | 123 misc = ( |
124 False, | |
125 False, | |
126 None, | |
127 True, | |
128 None, | |
129 "TIME_FORMAT", | |
130 "TIMESTAMP_FORMAT", | |
131 ) | |
116 args_ns = _ArgsNamespece(*(args + misc)) | 132 args_ns = _ArgsNamespece(*(args + misc)) |
117 | 133 |
118 io_kwargs = { | 134 io_kwargs = { |
119 "input": "file", | 135 "input": "file", |
120 "max_read": 30, | 136 "max_read": 30, |