diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 1214587..028b6b3 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -16,7 +16,7 @@ jobs: - name: "Set up Python" uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: '3.11' - name: "Install poetry" run: | python -m pip install --no-cache-dir poetry==1.8 supervisor diff --git a/test_app/tmp/notes.txt b/test_app/tmp/notes.txt new file mode 100644 index 0000000..789fd08 --- /dev/null +++ b/test_app/tmp/notes.txt @@ -0,0 +1,31 @@ +# tail docker container logs +docker compose logs -f dev-app + +libraries: +- pydantic -- object validation +- alembic +- cerbos -- multilanguage general purpose authorization enforcement framework +- strawberry -- most popular GraphQL framework +- sqlalchemy -- most popular ORM in python +- mypy +- FastAPI +- pytest -- dependency injected test framework + +normally mounts to 9009 +debug session mounts to 9008 -- only one at a time + + +schema changes: +- update YAML +- make codegen --> generate types +- make alembic-autogenerate --> generate migration +- make alembic-upgrade-head --> run migration + + +cerbos +derived_roles_common: aware of different roles +policies/sample.yaml: rules of what different roles can do for each action + +pytest +can generate fixtures +conftest.py will automatically load from each directory, tests in any lower directory have access to fixtures \ No newline at end of file