Skip to content

Commit a0f8922

Browse files
authored
Fix paths for pytest in contribution guide (#20655)
1 parent c0a1f24 commit a0f8922

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,25 +162,25 @@ We use [pytest](https://pytest.org/) to run the tests.
162162

163163
### Run a test file
164164

165-
To run the tests in `keras/losses/losses_test.py`, use the following command
165+
To run the tests in `keras/src/losses/losses_test.py`, use the following command
166166
at the root directory of the repo.
167167

168168
```shell
169-
pytest keras/losses/losses_test.py
169+
pytest keras/src/losses/losses_test.py
170170
```
171171

172172
### Run a single test case
173173

174174
You can specify a single test class to run within a file.
175175

176176
```shell
177-
pytest keras/losses/losses_test.py::MeanSquaredErrorTest
177+
pytest keras/src/losses/losses_test.py::MeanSquaredErrorTest
178178
```
179179

180180
You can also specify a single test method to run within a class.
181181

182182
```shell
183-
pytest keras/losses/losses_test.py::MeanSquaredErrorTest::test_sample_weighted
183+
pytest keras/src/losses/losses_test.py::MeanSquaredErrorTest::test_sample_weighted
184184
```
185185

186186
### Run all tests

0 commit comments

Comments
 (0)