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
def teardown(cwas_workspace): yield env = Env() env.reset() env.remove_file() for f in cwas_workspace.glob("*"): f.unlink() cwas_workspace.rmdir()
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()
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
def teardown(env_inst: Env): yield env_inst.reset() env_inst.remove_file()
def reset_env(): env = Env() env.reset() env.remove_file()
def _make_env_empty(): env = Env() env.reset() env.save()