Exemplo n.º 1
0
def test_04_get_migration_base_dir():
    """Verify that we get a non-Falsey return from get_migration_base_dir."""
    mdir = pydbvolve.get_migration_base_dir(
        pydbvolve.get_base_dir(TEST_CONFIG_FILE))
    assert (mdir is not None)
    assert (isinstance(mdir, str))
    assert (len(mdir) > 0)
    assert (mdir.startswith(pydbvolve.get_base_dir(TEST_CONFIG_FILE)))
Exemplo n.º 2
0
def test_07_get_log_dir():
    """Verify that we get a non-Falsey return from get_log_dir."""
    bdir = pydbvolve.get_base_dir(TEST_CONFIG_FILE)
    ldir = pydbvolve.get_log_dir(bdir)
    assert (ldir is not None)
    assert (isinstance(ldir, str))
    assert (len(ldir) > 0)
    assert (ldir.startswith(bdir))