Fix the test, testreset, dockertest and dockertestreset rules. We also fix the clean_examples rule and add commands to remove exempleapp lines from the urls.py and settings/base.py files.
Motivation and Context
test and testreset are broken because they are run from the parent directory of the manage.py. To fix we pass the Django project folder to it.
dockertest and dockertestreset are broken because the Dockerfile already sets the WORKDIR as the Django project folder.
Steps to reproduce (if appropriate):
Create a new project following the instructions and run the rules.
test and testreset fails to find any tests. After the fix -> runs 10 tests.
dockertest and dockertestreset fail because the path of the manage.py is wrong. After the fix -> run 10 tests.
clean_examples fail due to wrong manage.py path
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
Checklist:
[x] My code follows the code style of this project.
Description
Fix the
test
,testreset
,dockertest
anddockertestreset
rules. We also fix theclean_examples
rule and add commands to removeexempleapp
lines from theurls.py
andsettings/base.py
files.Motivation and Context
test
andtestreset
are broken because they are run from the parent directory of themanage.py
. To fix we pass the Django project folder to it.dockertest
anddockertestreset
are broken because the Dockerfile already sets the WORKDIR as the Django project folder.Steps to reproduce (if appropriate):
Create a new project following the instructions and run the rules.
test
andtestreset
fails to find any tests. After the fix -> runs 10 tests.dockertest
anddockertestreset
fail because the path of the manage.py is wrong. After the fix -> run 10 tests.clean_examples
fail due to wrong manage.py pathTypes of changes
Checklist: