コード例 #1
0
def test_hub_build_pull():
    args = set_hub_build_parser().parse_args([os.path.join(cur_dir, 'hub-mwu'), '--pull', '--push'])
    HubIO(args).build()

    args = set_hub_pushpull_parser().parse_args(['jinahub/pod.dummy_mwu_encoder'])
    HubIO(args).pull()

    args = set_hub_pushpull_parser().parse_args(['jinahub/pod.dummy_mwu_encoder:0.0.6'])
    HubIO(args).pull()
コード例 #2
0
ファイル: test_hub.py プロジェクト: anish2197/jina
    def test_hub_build_pull(self):
        args = set_hub_build_parser().parse_args(['./hub-mwu', '--pull', '--push'])
        HubIO(args).build()

        args = set_hub_pushpull_parser().parse_args(['jinahub/pod.dummy_mwu_encoder'])
        HubIO(args).pull()

        args = set_hub_pushpull_parser().parse_args(['jinahub/pod.dummy_mwu_encoder:0.0.6'])
        HubIO(args).pull()