1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-04 21:15:22 +02:00
mealie/tests/unit_tests
Jacob Corn e1d3a247c7
feat: random sort option for front page (#2363)
* Add hook for random sorting

* Add random sorting to front page

* Add multiple tests for random sorting.

* Be extra sure that all recipes are returned.

* Too stable random. seed doesn't reach backend.

* add timestamp to useRecipeSearch

* Update randomization tests for timestamp seeding

* ruff cleanup

* pass timestamp separately in getAll

* remove debugging log items

* remove timestamp from address bar

* remove defaults from backend timestamps

* timestamp should be optional

* fix edge case: query without timestamp

* similar edge case: no timestamp in pagination

* ruff :/

* better edge case handling

* stabilize random search test w/more recipes

* better pagination seeding

* update pagination seed test

* remove redundant random/seed check

* Test for api routes to random sorting.

* please the typing gods

* hack to make query parameters throw correct exc

* ruff

* fix validator message typo

* black reformatting

---------

Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
2023-05-29 16:56:20 -08:00
..
core fix: group creation (#1126) 2022-04-02 19:33:15 -08:00
pkgs/i18n Feature/improve localization (#1147) 2022-04-10 14:07:35 -08:00
repository_tests feat: random sort option for front page (#2363) 2023-05-29 16:56:20 -08:00
schema_tests prs-fleshgolem-2070: feat: sqlalchemy 2.0 (#2096) 2023-02-06 18:43:12 -09:00
services_tests Feature: Global Timeline (#2265) 2023-04-25 09:46:00 -08:00
validator_tests feature: proper multi-tenant-support (#969)(WIP) 2022-02-13 12:23:42 -09:00
__init__.py v0.4.0 (#236) 2021-03-31 07:20:35 -08:00
test_alembic.py feat: server side search (#2112) (#2117) 2023-02-11 21:26:10 -09:00
test_config.py feat: extend email support for SSL/No Auth Email Support (#1235) 2022-05-21 11:15:14 -08:00
test_exceptions.py Feature/improve localization (#1147) 2022-04-10 14:07:35 -08:00
test_ingredient_parser.py prs-fleshgolem-2070: feat: sqlalchemy 2.0 (#2096) 2023-02-06 18:43:12 -09:00
test_recipe_export_types.py feat(backend): 🚧 stub out new exporter service (WIP) (#715) 2021-10-02 11:37:04 -08:00
test_recipe_parser.py Convert scraper to use async (#1915) 2023-01-28 15:43:27 -09:00
test_security.py feat: LDAP Improvements and E2E testing (#2199) 2023-03-12 12:36:32 -08:00
test_utils.py prs-fleshgolem-2070: feat: sqlalchemy 2.0 (#2096) 2023-02-06 18:43:12 -09:00