Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update CONTRIBUTING.md to match what actually works (#18360)
Ania Warzecha9eaef68bb267
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 5cfc53d785..8dd173fac3 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -84,19 +84,19 @@ You are ready to go 🎉.To start server:```shell-poe start+uv run poe start```to start Celery worker:```-poe worker+uv run poe worker```to start Celery Beat scheduler:```shell-poe scheduler+uv run poe scheduler```> [!NOTE]@@ -105,13 +105,13 @@ poe schedulerTo run database migrations:```shell-poe migrate+uv run poe migrate```To populate database with example data and create the admin user:```shell-poe populatedb+uv run poe populatedb```> [!NOTE]@@ -120,13 +120,13 @@ poe populatedbTo build `schema.graphql` file:```shell-poe build-schema+uv run poe build-schema```To run Django shell:```-poe shell+uv run poe shell```## Managing dependencies@@ -222,7 +222,7 @@ In the case of testing the `API`, we would like to split all tests into `mutatioTo run tests, enter `poe test` in your terminal.```bash-poe test+uv run poe test```By default `poe test` is using the `--reuse-db` flag to speed up testing time.@@ -239,14 +239,14 @@ As running all tests is quite time-consuming, sometimes you want to run only tesYou can use the following command for that. In the case of a particular directory or file, provide the path after the `pytest` command, like:```bash-poe test saleor/graphql/app/tests+uv run poe test saleor/graphql/app/tests```If you want to run a particular test, you need to provide the path to the file where the test is and the file name after the `::` sign. In the case of running a single test, it's also worth using the `-n0` flag to run the test only in one thread. It will significantly decrease time.See an example below:```bash-poe test saleor/graphql/app/tests/mutations/test_app_create.py::test_app_create_mutation -n0+uv run poe test saleor/graphql/app/tests/mutations/test_app_create.py::test_app_create_mutation -n0```### Using pdb when testing@@ -255,7 +255,7 @@ If you would like to use `pdb` in code when running a test, you need to use a feSo the previous example will look like this:```bash-poe test saleor/graphql/app/tests/mutations/test_app_create.py::test_app_create_mutation -n0 -s --allow-hosts=127.0.0.1+uv run poe test saleor/graphql/app/tests/mutations/test_app_create.py::test_app_create_mutation -n0 -s --allow-hosts=127.0.0.1```### Recording cassettes@@ -263,7 +263,7 @@ poe test saleor/graphql/app/tests/mutations/test_app_create.py::test_app_create_Some of our tests use `VCR.py` cassettes to record requests and responses from external APIs. To record one, you need to use the `vcr-record` flag and specify `allow-hosts`:```bash-poe test --vcr-record=once saleor/app/tests/test_app_commands.py --allow-hosts=127.0.0.1+uv run poe test --vcr-record=once saleor/app/tests/test_app_commands.py --allow-hosts=127.0.0.1```### Writing benchmark tests@@ -288,7 +288,7 @@ def test_apps_for_federation_query_count(To check the number of queries, run the benchmark test, and after that, call the following command in your terminal:```bash-django-queries show+uv run django-queries show```You will see the number of queries that were performed for each test@@ -358,7 +358,7 @@ Use relative imports.### MigrationsTry to combine multiple migrations into one, but remember not to mix changes on the database with updating rows in migrations. In other words, operations that alter tables and use `RunPython` to run methods on existing data should be in separate files.-Follow [zero-downtime policy](./developer/community/zero-downtime-migrations.mdx) when writing migrations.+Follow [zero-downtime policy](https://docs.saleor.io/developer/community/zero-downtime-migrations) when writing migrations.### Handling migrations between versions