Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jul 31, 2024
1 parent 9702be1 commit 7e8b2cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_02_utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from __future__ import annotations

import os
import pathlib

import fsspec

from cacholote import utils
import os


def test_hexdigestify() -> None:
text = "some random Unicode text \U0001f4a9"
Expand All @@ -30,6 +31,7 @@ def test_copy_buffered_file(tmp_path: pathlib.Path) -> None:
utils.copy_buffered_file(f_src, f_dst)
assert open(src, "rb").read() == open(dst, "rb").read() == b"test"


def test_change_working_dir(tmp_path: pathlib.Path) -> None:
old_cwd = os.getcwd()
with utils.change_working_dir(str(tmp_path)) as actual:
Expand Down

0 comments on commit 7e8b2cb

Please sign in to comment.