Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed May 6, 2024
1 parent d397b1e commit 20a28da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/pyathena/filesystem/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,16 @@ def test_info_file(self, fs):
)
file = f"{dir}/{uuid.uuid4()}"

fs.invalidate_cache()
with pytest.raises(FileNotFoundError):
fs.info(file)
fs.invalidate_cache()

now = datetime.now(timezone.utc)
fs.pipe(file, b"a")
bucket, key, version_id = fs.parse_path(file)
fs.invalidate_cache()
info = fs.info(file)
fs.invalidate_cache()
ls_info = fs.ls(file, detail=True)[0]

assert info == ls_info
Expand Down

0 comments on commit 20a28da

Please sign in to comment.