def test_local_exists_full_path(self, tmp_dir): result = LocalResult(dir=tmp_dir, location="{thing}.txt") assert result.exists("44.txt") is False new_result = result.write("so-much-data", thing=44) assert result.exists("44.txt") is True assert result.exists(os.path.join(tmp_dir, "44.txt")) is True
def test_local_result_writes_and_exists(self, tmp_dir): result = LocalResult(dir=tmp_dir, location="{thing}.txt") assert result.exists("43.txt") is False new_result = result.write("so-much-data", thing=43) assert result.exists("43.txt") is True