Skip to content

Commit

Permalink
Fix paths for pytest in contribution guide (keras-team#20655)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicu authored Dec 17, 2024
1 parent c0a1f24 commit a0f8922
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,25 +162,25 @@ We use [pytest](https://pytest.org/) to run the tests.

### Run a test file

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

```shell
pytest keras/losses/losses_test.py
pytest keras/src/losses/losses_test.py
```

### Run a single test case

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

```shell
pytest keras/losses/losses_test.py::MeanSquaredErrorTest
pytest keras/src/losses/losses_test.py::MeanSquaredErrorTest
```

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

```shell
pytest keras/losses/losses_test.py::MeanSquaredErrorTest::test_sample_weighted
pytest keras/src/losses/losses_test.py::MeanSquaredErrorTest::test_sample_weighted
```

### Run all tests
Expand Down

0 comments on commit a0f8922

Please sign in to comment.