Skip to content

Commit 0f006bf

Browse files
committed
Add render_patterns to project test suite & contributing notes
1 parent e0a752f commit 0f006bf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ Then you can install the dependencies and run the test app:
2020

2121
```sh
2222
poetry install
23-
poetry run 'django-admin runserver --settings=tests.settings --pythonpath=.'
23+
# Start the server for testing:
24+
poetry run django-admin runserver --settings=tests.settings --pythonpath=.
25+
# Or to try out the render_patterns command:
26+
poetry run django-admin render_patterns --settings=tests.settings --pythonpath=. --dry-run --verbosity 2
2427
```
2528

2629
### Run a local build with docker

pattern_library/management/commands/render_patterns.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def handle(self, **options):
5555
if self.wrap_fragments:
5656
self.stderr.write('Writing fragment patterns wrapped in base template')
5757

58-
5958
# Resolve the output dir according to the directory the command is run from.
6059
parent_dir = Path.cwd().joinpath(self.output_dir)
6160

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ install_command =
99
./tox_install.sh {packages}
1010
commands =
1111
poetry run ./runtests.py
12+
poetry run django-admin render_patterns --settings=tests.settings --pythonpath=. --dry-run
1213
deps =
1314
dj22: Django>=2.2,<2.3
1415
dj30: Django>=3.0,<3.1

0 commit comments

Comments
 (0)