Exemple #1
0
def test_load_env_from_file(env_inst: Env):
    env_inst.set_env("TEST", "TEST")
    env_inst.save()
    env_inst.reset()
    assert not env_inst.env
    env_inst.load_env_from_file()
    assert env_inst.env
Exemple #2
0
def teardown(cwas_workspace):
    yield
    env = Env()
    env.reset()
    env.remove_file()
    for f in cwas_workspace.glob("*"):
        f.unlink()
    cwas_workspace.rmdir()
Exemple #3
0
def teardown(cwas_workspace: Path, vep_mock: Path):
    yield
    vep_mock.unlink()
    env = Env()
    env.reset()
    env.remove_file()
    for f in cwas_workspace.glob("*"):
        f.unlink()
    cwas_workspace.rmdir()
Exemple #4
0
def test_env_reset(env_inst: Env):
    env_inst.reset()
    env_key = "TEST"
    env_value = env_inst.get_env(env_key)
    assert not env_inst.env
    assert env_value is None
Exemple #5
0
def teardown(env_inst: Env):
    yield
    env_inst.reset()
    env_inst.remove_file()
Exemple #6
0
def reset_env():
    env = Env()
    env.reset()
    env.remove_file()
Exemple #7
0
def _make_env_empty():
    env = Env()
    env.reset()
    env.save()