mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-01 08:04:35 -05:00
Files
fa6743110f1dfd3d5bafb5a73b20b6b68330db7f
12 lines
292 B
Python
12 lines
292 B
Python
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)
|