File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ General Guidelines
8282 should adapt to the breaking change in docs/upgrade.rst.
8383- Write inline documentation for new classes and methods.
8484- Write tests and make sure they pass (make sure you have a mongod
85- running on the default port, then execute ``python setup.py test ``
85+ running on the default port, then execute ``pytest tests/ ``
8686 from the cmd line to run the test suite).
8787- Ensure tests pass on all supported Python, PyMongo, and MongoDB versions.
8888 You can test various Python and PyMongo versions locally by executing
Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ Some simple examples of what MongoEngine code looks like:
125125 Tests
126126=====
127127To run the test suite, ensure you are running a local instance of MongoDB on
128- the standard port and have ``pytest `` installed. Then, run ``python setup.py test ``
129- or simply ``pytest ``.
128+ the standard port and have ``pytest `` installed. Then, run ``pytest tests/ ``.
130129
131130To run the test suite on every supported Python and PyMongo version, you can
132131use ``tox ``. You'll need to make sure you have each supported Python version
@@ -139,15 +138,6 @@ installed in your environment and then:
139138 # Run the test suites
140139 $ tox
141140
142- If you wish to run a subset of tests, use the pytest convention:
143-
144- .. code-block :: shell
145-
146- # Run all the tests in a particular test file
147- $ pytest tests/fields/test_fields.py
148- # Run only particular test class in that file
149- $ pytest tests/fields/test_fields.py::TestField
150-
151141 Community
152142=========
153143- `MongoEngine Users mailing list
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Changelog
77Development
88===========
99- (Fill this out as you fix issues and develop your features).
10+ - Switch tox to use pytest instead of legacy `python setup.py test ` #2804
1011
1112Changes in 0.28.2
1213=================
You can’t perform that action at this time.
0 commit comments