Skip to content

Commit bd58f95

Browse files
committed
update changelog and doc
1 parent 82cbd97 commit bd58f95

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

README.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ Some simple examples of what MongoEngine code looks like:
125125
Tests
126126
=====
127127
To 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

131130
To run the test suite on every supported Python and PyMongo version, you can
132131
use ``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

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changelog
77
Development
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

1112
Changes in 0.28.2
1213
=================

0 commit comments

Comments
 (0)