@@ -15,21 +15,21 @@ run automatically.
15
15
16
16
Please write unit tests for your change. There are two kinds of tests:
17
17
18
- * Regular unit tests that test the code directly, without loading
19
- Django. This is limited to pieces of the code that don't depend on
20
- Django, since a lot of the Django code will require a full Django
21
- environment (anything that interacts with models, for instance,
22
- needs a full database configuration).
23
- * End-to-end tests are Django unit tests in a test application. The
24
- test application doubles as an easy way to interactively test your
25
- changes. It uses most of the basic Django features and a few
26
- advanced features, so you can test things for yourself.
18
+ * Regular unit tests that test the code directly, without loading
19
+ Django. This is limited to pieces of the code that don't depend on
20
+ Django, since a lot of the Django code will require a full Django
21
+ environment (anything that interacts with models, for instance,
22
+ needs a full database configuration).
23
+ * End-to-end tests are Django unit tests in a test application. The
24
+ test application doubles as an easy way to interactively test your
25
+ changes. It uses most of the basic Django features and a few
26
+ advanced features, so you can test things for yourself.
27
27
28
28
### Running all tests
29
29
30
30
``` shell
31
- $ python setup.py test
32
- $ ( cd tests/end2end/; PYTHONPATH=../.. ./manage.py test)
31
+ python setup.py test
32
+ cd tests/end2end/ && PYTHONPATH=../.. ./manage.py test
33
33
```
34
34
35
35
The former runs the regular unit tests, the latter runs the Django
@@ -41,15 +41,15 @@ setup.py install`.
41
41
### Running the test Django app
42
42
43
43
``` shell
44
- $ ( cd tests/end2end/; PYTHONPATH=../.. ./manage.py runserver)
44
+ cd tests/end2end/ && PYTHONPATH=../.. ./manage.py runserver
45
45
```
46
46
47
47
By default, this will start serving on http://localhost:8000/ . Metrics
48
48
are available at ` /metrics ` .
49
49
50
50
## Running Prometheus
51
51
52
- See http://prometheus.io/docs/ for instructions on installing
52
+ See < http://prometheus.io/docs/ > for instructions on installing
53
53
Prometheus. Once you have Prometheus installed, you can use the
54
54
example rules and dashboard in ` examples/prometheus/ ` . See
55
55
` examples/prometheus/README.md ` to run Prometheus and view the example
0 commit comments