Skip to content

Commit

Permalink
fix(test): fix doctest in utils and plaintex
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Feb 19, 2024
1 parent 37456cc commit 645ee12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion alto2txt2fixture/plaintext.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def compress_json_exports(
>>> compressed_paths: Path = plaintext_bl_lwm.compress_json_exports(
... format='tar')
<BLANKLINE>
...Compressing...'...01.json'...to...'tar'...in:...
...Compressing...'...01.json...'...to...'tar'...in:...
>>> compressed_paths
(...Path('.../plaintext_fixture-000001.json.tar'),)
>>> logger.setLevel(logger_initial_level)
Expand Down
10 changes: 5 additions & 5 deletions alto2txt2fixture/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ def compress_fixture(
... output_path=tmp_path,
... dry_run=True)
<BLANKLINE>
...Compressing...'...01.json'...to...'zip'...
...Compressing...'...01.json...'...to...'zip'...
>>> compressed_path.exists()
False
>>> compressed_path: Path = compress_fixture(path=json_path,
Expand Down Expand Up @@ -2019,11 +2019,11 @@ def dirs_in_path(path: PathLike) -> Generator[Path, None, None]:
('test_dir',)
>>> [(tmp_path / f'new_dir_{i}').mkdir() for i in range(3)]
[None, None, None]
>>> tuple(dir.name for dir in dirs_in_path(tmp_path))
('new_dir_1', 'new_dir_0', 'test_dir', 'new_dir_2')
>>> tuple(dir.name for dir in sorted(dirs_in_path(tmp_path)))
('new_dir_0', 'new_dir_1', 'new_dir_2', 'test_dir')
>>> (tmp_path / 'test_dir' / 'another_dir').mkdir()
>>> tuple(dir.name for dir in dirs_in_path(tmp_path))
('new_dir_1', 'new_dir_0', 'test_dir', 'new_dir_2')
>>> tuple(dir.name for dir in sorted(dirs_in_path(tmp_path)))
('new_dir_0', 'new_dir_1', 'new_dir_2', 'test_dir')
```
"""
Expand Down

0 comments on commit 645ee12

Please sign in to comment.