Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
ci(torchvision): install torchvision dependency to enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 25, 2019
1 parent 7fcd50d commit 83276f9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tests/test_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,12 @@ def setUp(self):
self.dirname = os.path.dirname(__file__)

def test_preprocessor_service_empty(self):
args = set_preprocessor_service_parser().parse_args([
'--port_in', str(YamlComposer._get_random_port()),
'--port_out', str(YamlComposer._get_random_port())
])
args = set_preprocessor_service_parser().parse_args([])
with PreprocessorService(args):
pass

def test_preprocessor_service_echo(self):
args = set_preprocessor_service_parser().parse_args([
'--port_in', str(YamlComposer._get_random_port()),
'--port_out', str(YamlComposer._get_random_port())
])
args = set_preprocessor_service_parser().parse_args([])
c_args = _set_client_parser().parse_args([
'--port_in', str(args.port_out),
'--port_out', str(args.port_in)
Expand All @@ -44,10 +38,7 @@ def test_preprocessor_service_echo(self):
print(r)

def test_preprocessor_service_realdata(self):
args = set_preprocessor_service_parser().parse_args([
'--port_in', str(YamlComposer._get_random_port()),
'--port_out', str(YamlComposer._get_random_port())
])
args = set_preprocessor_service_parser().parse_args([])
c_args = _set_client_parser().parse_args([
'--port_in', str(args.port_out),
'--port_out', str(args.port_in)
Expand Down

0 comments on commit 83276f9

Please sign in to comment.