Skip to content

Commit

Permalink
test: add conftest to reset abstract processors
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Feb 14, 2024
1 parent 86aeaab commit beda8b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest

from pdf_bot.file_processor import AbstractFileProcessor
from pdf_bot.image_processor import AbstractImageProcessor
from pdf_bot.pdf_processor import AbstractPdfProcessor


@pytest.fixture(autouse=True)
def _after_test() -> None:
AbstractFileProcessor._FILE_PROCESSORS = {} # noqa: SLF001
AbstractImageProcessor._IMAGE_PROCESSORS = {} # noqa: SLF001
AbstractPdfProcessor._PDF_PROCESSORS = {} # noqa: SLF001

0 comments on commit beda8b2

Please sign in to comment.