@@ -163,41 +163,41 @@ install command:
163163
164164You can run all unit tests with:
165165
166- nosetests
166+ pytest
167167
168168#### Running all tests in a file
169169
170170To run all tests under a particular test file you can use the following
171171command:
172172
173- nosetests tests.<file_name_without_extension>
173+ pytest tests.<file_name_without_extension>
174174
175- For example, to run all tests under ` test_event ` , the command would be:
175+ For example, to run all tests under ` test_event_builder ` , the command would be:
176176
177- nosetests tests.test_event
177+ pytest tests/test_event_builder.py
178178
179179#### Running all tests under a class
180180
181181To run all tests under a particular class of tests you can use the
182182following command:
183183
184- nosetests tests.<file_name_without_extension> :ClassName
184+ pytest tests/<file_name_with_extension>: :ClassName
185185
186- For example, to run all tests under ` test_event .EventTest` , the command
186+ For example, to run all tests under ` test_event_builder .EventTest` , the command
187187would be:
188188
189- nosetests tests.test_event :EventTest
189+ pytest tests/test_event_builder.py: :EventTest
190190
191191#### Running a single test
192192
193193To run a single test you can use the following command:
194194
195- nosetests tests.<file_name_without_extension>: ClassName. test_name
195+ pytest tests/<file_name_with_extension>:: ClassName:: test_name
196196
197- For example, to run ` test_event .EventTest.test_dispatch ` , the command
197+ For example, to run ` test_event_builder .EventTest.test_init ` , the command
198198would be:
199199
200- nosetests tests.test_event: EventTest.test_dispatch
200+ pytest tests/test_event_builder.py:: EventTest::test_init
201201
202202### Contributing
203203
0 commit comments