mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-25 13:14:06 -05:00
Files
e2b9f02f55fe8f43e3fa3944719d9d0c314c7899
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)
|