コード例 #1
0
def test_setup_store():

    _test_setup_store(LocalIO, [])

    if on_windows:
        raise SkipTest('ora_remote.SSHRemoteIO stalls on Windows')

    skip_ssh(_test_setup_store)(SSHRemoteIO, ['datalad-test'])
コード例 #2
0
def test_target_ssh_inherit():
    skip_if_on_windows()  # create_sibling incompatible with win servers
    try:
        from datalad_deprecated.publish import Publish
    except ImportError:
        raise SkipTest('Test requires `publish()` from datalad-deprecated')
    # TODO: was waiting for resolution on
    #   https://github.com/datalad/datalad/issues/1274
    # which is now closed but this one is failing ATM, thus leaving as TODO
    # _test_target_ssh_inherit(None)      # no wanted etc
    # Takes too long so one will do with UI and another one without
    skip_ssh(_test_target_ssh_inherit)(
        'manual', have_webui(),
        True)  # manual -- no load should be annex copied
    _test_target_ssh_inherit('backup', False,
                             False)  # backup -- all data files
コード例 #3
0
def test_skip_ssh():
    with patch_config({'datalad.tests.ssh': False}):
        with assert_raises(Skipped):
            skip_ssh(lambda: False)()
コード例 #4
0
def test_bare_git_version_2():
    # TODO: Skipped due to gh-4436
    known_failure_windows(skip_ssh(_test_bare_git_version_2))('datalad-test')
    _test_bare_git_version_2(None)
コード例 #5
0
def test_check_exists_interactive():
    skip_if_on_windows()
    skip_ssh(check_exists_interactive)(True)
    check_exists_interactive(False)
コード例 #6
0
def test_failon_no_permissions():
    skip_ssh(check_failon_no_permissions)(True)
    check_failon_no_permissions(False)
コード例 #7
0
def test_replace_and_relative_sshpath():
    skip_if_on_windows()
    skip_ssh(check_replace_and_relative_sshpath)(True)
    check_replace_and_relative_sshpath(False)
コード例 #8
0
def test_target_ssh_since():
    skip_if_on_windows()
    skip_ssh(check_target_ssh_since)(True)
    check_target_ssh_since(False)
コード例 #9
0
def test_target_ssh_recursive():
    skip_if_on_windows()
    check_target_ssh_recursive(False)
    skip_ssh(check_target_ssh_recursive)(True)
コード例 #10
0
def test_binary_data():
    # TODO: Skipped due to gh-4436
    known_failure_windows(skip_ssh(_test_binary_data))('datalad-test')
    skip_if_no_network(_test_binary_data)(None)
コード例 #11
0
def test_initremote_rewrite():
    # TODO: Skipped due to gh-4436
    known_failure_windows(skip_ssh(_test_initremote_rewrite))('datalad-test')
    _test_initremote_rewrite(None)
コード例 #12
0
def test_create_simple():

    _test_create_store(None)
    # TODO: Skipped due to gh-4436
    skip_if_on_windows(skip_ssh(_test_create_store))('datalad-test')