mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-08 05:51:50 -07:00
11 lines
298 B
Python
11 lines
298 B
Python
from pathlib import Path
|
|
|
|
from mealie.core import security
|
|
from mealie.core.dependencies 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)
|