Ejemplo n.º 1
0
def test_remote_feedback_not_overwriting_local_changes(dynsync, local_dir, remote_dir):
    import time
    time.sleep(1)
    filepath = join(local_dir, "file")
    writefile(filepath, byte_count=100)
    wait_dirs_equal(local_dir, remote_dir)
    assert getsize(filepath) == 100
Ejemplo n.º 2
0
def test_ignore_remote(dynsync, local_dir, remote_dir):
    import time
    time.sleep(1)
    writefile((remote_dir, "ignored_file"))
    with pytest.raises(NotEqualException):
        wait_dirs_equal(local_dir, remote_dir)
Ejemplo n.º 3
0
def test_ignore_local(dynsync, local_dir, remote_dir):
    writefile((local_dir, "ignored_file"))
    with pytest.raises(NotEqualException):
        wait_dirs_equal(local_dir, remote_dir)
Ejemplo n.º 4
0
def test_mkdir_mkfile(dynsync, local_dir, remote_dir):
    initialize(local_dir)
    wait_dirs_equal(local_dir, remote_dir)
    initialize(local_dir, prefix="A", depth=1)
    wait_dirs_equal(local_dir, remote_dir)
Ejemplo n.º 5
0
def test_simple_sync_remote(dynsync, local_dir, remote_dir):
    import time
    time.sleep(1)
    # use: pgrep -f '[-] /tmp/pytest-of-emdej/pytest-151/remote0'
    initialize(remote_dir)
    wait_dirs_equal(local_dir, remote_dir, timeout=5)
Ejemplo n.º 6
0
def test_simple_sync(dynsync, local_dir, remote_dir):
    initialize(local_dir)
    wait_dirs_equal(local_dir, remote_dir)