Skip to content

Commit

Permalink
import package data for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
iulusoy committed Sep 5, 2024
1 parent c0839b6 commit b4ce442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mailcom/test/test_inout.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from mailcom.inout import list_of_files, get_text, get_html_text
import pytest
from pathlib import Path
from importlib import resources

pkg = resources.files("mailcom")

FILE_PATH = Path("mailcom/test/data/Bonjour Agathe.eml")
FILE_PATH = Path(pkg / "test" / "data" / "Bonjour Agathe.eml")
TEXT_REF = "J'espère que tu vas bien!"

def test_list_of_files_found(tmp_path):
Expand Down

0 comments on commit b4ce442

Please sign in to comment.