Пример #1
0
def sm(
    runner,
    git_repo,
    record_q,
    result_q,
    test_settings,
    meta,
    mock_server,
    mocked_run,
    interface,
):
    sm = SendManager(
        settings=test_settings,
        record_q=record_q,
        result_q=result_q,
        interface=interface,
    )
    meta._interface.publish_run(mocked_run)
    sm.send(record_q.get())
    yield sm
Пример #2
0
def sm(
    runner, sender_q, result_q, test_settings, mock_server, interface,
):
    with runner.isolated_filesystem():
        test_settings.root_dir = os.getcwd()
        sm = SendManager(
            settings=test_settings,
            record_q=sender_q,
            result_q=result_q,
            interface=interface,
        )
        yield sm
Пример #3
0
def sm(
    runner,
    git_repo,
    record_q,
    result_q,
    test_settings,
    meta,
    mock_server,
    mocked_run,
    interface,
):
    test_settings.update(save_code=True,
                         source=wandb.sdk.wandb_settings.Source.INIT)
    sm = SendManager(
        settings=test_settings,
        record_q=record_q,
        result_q=result_q,
        interface=interface,
    )
    meta._interface.publish_run(mocked_run)
    sm.send(record_q.get())
    yield sm
Пример #4
0
def internal_sm(
    runner,
    internal_sender_q,
    internal_result_q,
    test_settings,
    mock_server,
    _internal_sender,
):
    with runner.isolated_filesystem():
        test_settings.update(root_dir=os.getcwd(),
                             source=wandb.sdk.wandb_settings.Source.INIT)
        sm = SendManager(
            settings=test_settings,
            record_q=internal_sender_q,
            result_q=internal_result_q,
            interface=_internal_sender,
        )
        yield sm