added test inputs to all input interfaces except File

This commit is contained in:
Abubakar Abid 2020-08-28 09:52:57 -05:00
parent e3baa56514
commit 1d27d9f93d
2 changed files with 40 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -256,9 +256,19 @@ class Interface:
def test_launch(self):
for predict_fn in self.predict:
print("Testing {}()...".format(predict_fn.__name__), end=' ')
print("Testing: {}()...".format(predict_fn.__name__), end=' ')
raw_input = []
for input_interface in self.input_interfaces:
if input_interface.test_input is None:
break
else:
raw_input.append(input_interface.test_input)
else:
self.process(raw_input)
print("PASSED")
print("SKIPPED")
def launch(self, inline=None, inbrowser=None, share=False, debug=False):
"""