1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-25 08:09:41 +02:00
mealie/tests/integration_tests
Hayden 476aefeeb0
refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton (#687)
* refactor(backend): ♻️ cleanup duplicate code in http services

* refactor(backend): ♻️ refactor database away from singleton design

removed the database single and instead injected the session into a new Database class that is created during each request life-cycle. Now sessions no longer need to be passed into each method on the database

All tests pass, but there are likely some hidden breaking changes that were not discovered.

* fix venv

* disable venv cache

* fix install script

* bump poetry version

* postgres fixes

* revert install

* fix db initialization for postgres

* add postgres to docker

* refactor(backend): ♻️ cleanup unused and duplicate code in http services

* refactor(backend): remove sessions from arguments

* refactor(backend): ♻️ convert units and ingredients to use http service class

* test(backend):  add unit and food tests

* lint

* update tags

* re-enable cache

* fix missing fraction in db

* fix lint

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-19 15:31:34 -08:00
..
admin_tests feat(backend): start multi-tenant support (WIP) (#680) 2021-09-09 08:51:29 -08:00
user_group_tests refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton (#687) 2021-09-19 15:31:34 -08:00
user_recipe_tests refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton (#687) 2021-09-19 15:31:34 -08:00
user_tests feat(backend): start multi-tenant support (WIP) (#680) 2021-09-09 08:51:29 -08:00
__init__.py v0.4.0 (#236) 2021-03-31 07:20:35 -08:00
test_import_routes.py feat(backend): start multi-tenant support (WIP) (#680) 2021-09-09 08:51:29 -08:00
test_migration_routes.py style(backend): 🎨 add isort to lint and CI/CD 2021-08-28 14:27:56 -08:00
test_settings_routes.py style(backend): 🎨 add isort to lint and CI/CD 2021-08-28 14:27:56 -08:00
test_tags_categories.py v0.4.0 (#236) 2021-03-31 07:20:35 -08:00