refactor: fix multiple yield in on_render + prepare for scoped CSS (#1425)
Some checks failed
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
Docs - build & deploy / docs (push) Has been cancelled

This commit is contained in:
Juro Oravec 2025-10-02 13:46:39 +02:00 committed by GitHub
parent cd7a9c9703
commit 91012829ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 330 additions and 268 deletions

View file

@ -98,6 +98,22 @@ pytest
tox -e py38
```
## Snapshot tests
Some tests rely on snapshot testing with [syrupy](https://github.com/syrupy-project/syrupy) to test the HTML output of the components.
If you need to update the snapshot tests, add `--snapshot-update` to the pytest command:
```sh
pytest --snapshot-update
```
Or with tox:
```sh
tox -e py39 -- --snapshot-update
```
## Dev server
How do you check that your changes to django-components project will work in an actual Django project?