From e105b86f19758dc4d21012e7b291c4fdd8285592 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 17 Dec 2024 20:48:47 +0100 Subject: [PATCH] Fix paths for pytest in contribution guide --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f508aec341f..166b6d052b7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -162,11 +162,11 @@ 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 @@ -174,13 +174,13 @@ pytest keras/losses/losses_test.py 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