Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black

Expand Down
10 changes: 4 additions & 6 deletions tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def test_basic_workflow(tmp_path):

path = os.path.join(NB_PATH, "basic_failing.ipynb")
diff = cache.diff_nbfile_with_cache(pk, path, as_str=True, use_color=False)
assert diff == dedent(
f"""\
assert diff == dedent(f"""\
nbdiff
--- cached pk=1
+++ other: {path}
Expand All @@ -73,8 +72,7 @@ def test_basic_workflow(tmp_path):
- text:
- 1

"""
)
""")
cache.remove_cache(pk)
assert cache.list_cache_records() == []

Expand Down Expand Up @@ -113,7 +111,7 @@ def test_v4_2_to_v4_5(tmp_path):
uri="basic.ipynb",
check_validity=False,
)
(pk, nb) = cache.merge_match_into_notebook(
pk, nb = cache.merge_match_into_notebook(
nbf.read(os.path.join(NB_PATH, "basic_v4-5.ipynb"), nbf.NO_CONVERT)
)
assert cache_record.pk == pk
Expand All @@ -131,7 +129,7 @@ def test_v4_5_to_v4_2(tmp_path):
uri="basic_v4-5.ipynb",
check_validity=False,
)
(pk, nb) = cache.merge_match_into_notebook(
pk, nb = cache.merge_match_into_notebook(
nbf.read(os.path.join(NB_PATH, "basic.ipynb"), nbf.NO_CONVERT)
)
assert cache_record.pk == pk
Expand Down