-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change type hint on `view_to_component` callable to have `request` argument be optional. - More DRY way of async view rendering. - Have docs demonstrate how to use Django-IDOM with `channels>=4.0.0`. - Concatenate some examples on the `view_to_component` docs - Add note to docs about potential information exposure via `view_to_component` when using `compatibility=True`. - Clean up docs on running tests
- Loading branch information
1 parent
09d11f0
commit 5cf5640
Showing
22 changed files
with
288 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
This repo uses [Nox](https://nox.thea.codes/en/stable/) to run scripts which can be found in `noxfile.py`. For a full test of available scripts run `nox -l`. To run the full test suite simple execute: | ||
This repo uses [Nox](https://nox.thea.codes/en/stable/) to run tests. For a full test of available scripts run `nox -l`. | ||
|
||
If you plan to run tests, you'll need to install the following dependencies first: | ||
|
||
- [Python 3.8+](https://www.python.org/downloads/) | ||
- [Git](https://git-scm.com/downloads) | ||
|
||
Once done, you should clone this repository: | ||
|
||
```bash | ||
git clone https://github.com/idom-team/django-idom.git | ||
cd django-idom | ||
pip install -r ./requirements/test-run.txt --upgrade | ||
``` | ||
|
||
Then, by running the command below you can run the full test suite: | ||
|
||
``` | ||
nox -s test | ||
``` | ||
|
||
If you do not want to run the tests in the background: | ||
Or, if you want to run the tests in the foreground: | ||
|
||
``` | ||
nox -s test -- --headed | ||
``` | ||
|
||
!!! warning "Most tests will not run on Windows" | ||
|
||
Due to [bugs within Django Channels](https://github.com/django/channels/issues/1207), functional tests are not run on Windows. In order for Windows users to test Django-IDOM functionality, you will need to run tests via [Windows Subsystem for Linux](https://code.visualstudio.com/docs/remote/wsl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
channels >=3.0.0 | ||
channels >=4.0.0 | ||
idom >=0.40.2, <0.41.0 | ||
aiofile >=3.0 | ||
typing_extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.