File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 59
59
.. _`pyflakes` : https://github.com/pyflakes/pyflakes
60
60
.. _`pep8` : https://pep8.readthedocs.io/en/latest/index.html
61
61
62
+
63
+ Pytest marks
64
+ ------------
65
+
66
+ The Read the Docs code base is deployed as three instances:
67
+
68
+ - Main: where you can see the dashboard.
69
+ - Build: where the builds happen.
70
+ - Serve/proxito: It is in charge of serving the documentation pages.
71
+
72
+ Each instance has its own settings.
73
+ To make sure we test each part as close as possible to its real settings,
74
+ we use `pytest marks <https://docs.pytest.org/en/latest/mark.html >`__.
75
+ This allow us to run each set of tests with different settings files,
76
+ or skip some (like search tests)::
77
+
78
+
79
+ DJANGO_SETTINGS_MODULE=custom.settings.file pytest -m mark
80
+ DJANGO_SETTINGS_MODULE=another.settings.file pytest -m "not mark"
81
+
82
+ Current marks are:
83
+
84
+ - search (tests that require Elastic Search)
85
+ - proxito (tests from the serve/proxito instance)
86
+
87
+ Tests without mark are from the main instance.
88
+
62
89
Continuous Integration
63
90
----------------------
64
91
You can’t perform that action at this time.
0 commit comments