mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
Improve Test Coverage (#511)
* add recipe scaling notes * test theme rename * fix coverage call to use poetry * remove print * remove async * consolidate test case data * fix mealplan tests * remove redundant else Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
c325a49fc2
commit
2dc9c8e843
17 changed files with 249 additions and 230 deletions
11
tests/unit_tests/test_security.py
Normal file
11
tests/unit_tests/test_security.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue