File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,36 @@ $ python manage.py test
34
34
$ python manage.py runserver
35
35
```
36
36
37
+ load fixtures
38
+ ``` sh
39
+ $ python manage.py loaddata .\f ixtures\a vailable_geography.json
40
+ $ python manage.py loaddata .\f ixtures\p athogens.json
41
+ $ python manage.py loaddata .\f ixtures\s ignal_categories.json
42
+ $ python manage.py loaddata .\f ixtures\s ignal_types.json
43
+ ```
44
+
45
+ if you need test coverage
46
+
47
+ ``` sh
48
+ $ coverage erase
49
+ $ coverage python manage.py test
50
+ $ coverage report
51
+ ```
52
+
53
+ you can also get test coverage with one command
54
+ ``` sh
55
+ $ coverage erase && coverage run manage.py test && coverage report
56
+ ```
57
+
58
+ sort imports
59
+ ``` sh
60
+ $ isort .
61
+ ```
62
+ check flake
63
+ ``` sh
64
+ $ flake8 --show-source
65
+ ```
66
+
37
67
### To run via docker
38
68
39
69
Install ` Docker ` and ` docker-compose `
You can’t perform that action at this time.
0 commit comments