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'])
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
def test_skip_ssh(): with patch_config({'datalad.tests.ssh': False}): with assert_raises(Skipped): skip_ssh(lambda: False)()
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)
def test_check_exists_interactive(): skip_if_on_windows() skip_ssh(check_exists_interactive)(True) check_exists_interactive(False)
def test_failon_no_permissions(): skip_ssh(check_failon_no_permissions)(True) check_failon_no_permissions(False)
def test_replace_and_relative_sshpath(): skip_if_on_windows() skip_ssh(check_replace_and_relative_sshpath)(True) check_replace_and_relative_sshpath(False)
def test_target_ssh_since(): skip_if_on_windows() skip_ssh(check_target_ssh_since)(True) check_target_ssh_since(False)
def test_target_ssh_recursive(): skip_if_on_windows() check_target_ssh_recursive(False) skip_ssh(check_target_ssh_recursive)(True)
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)
def test_initremote_rewrite(): # TODO: Skipped due to gh-4436 known_failure_windows(skip_ssh(_test_initremote_rewrite))('datalad-test') _test_initremote_rewrite(None)
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')