Skip to content

Commit

Permalink
FIXUP: remove test_archive_is_called() test
Browse files Browse the repository at this point in the history
Test became obsolete with the removal of archive() call from
Document.mark_as_safe().
  • Loading branch information
deeplow committed Nov 24, 2022
1 parent 4662eef commit 8cc016e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ def test_archive_unwriteable_dir(sample_doc: str, tmp_path: Path) -> None:
d.validate_default_archive_dir()


def test_archive_is_called(mocker: MagicMock, sample_doc: str) -> None:
d = Document(sample_doc, archive=True)
d.archive = mocker.MagicMock() # type: ignore [assignment]

# archive should be called after conversion
d.mark_as_safe()
d.archive.assert_called_once() # type: ignore [attr-defined]


def test_archive(mocker: MagicMock, tmp_path: Path) -> None:
test_string = "original file"
original_doc_path = str(tmp_path / "doc.pdf")
Expand Down

0 comments on commit 8cc016e

Please sign in to comment.