1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 21:29:40 +02:00
mealie/tests/unit_tests/test_security.py

12 lines
292 B
Python
Raw Normal View History

from pathlib import Path
from mealie.core import security
from mealie.routes.deps import validate_file_token
def test_create_file_token():
file_path = Path(__file__).parent
file_token = security.create_file_token(file_path)
assert file_path == validate_file_token(file_token)