You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Upping the test coverage
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* README updates + add click to test requirements
* add redis pytest mark on test_missing_redis_client
* ruff fixes and pre-commit updates
* remove pull_request_target
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Install in development mode with test dependencies:
522
+
Install in development mode with test dependencies for local cores (memory and pickle) only:
523
523
524
524
.. code-block:: bash
525
525
526
526
cd cachier
527
527
pip install -e . -r tests/requirements.txt
528
528
529
+
Each additional core (MongoDB, Redis, SQL) requires additional dependencies. To install all dependencies for all cores, run:
530
+
531
+
.. code-block:: bash
532
+
533
+
pip install -r tests/mongodb_requirements.txt
534
+
pip install -r tests/redis_requirements.txt
535
+
pip install -r tests/sql_requirements.txt
529
536
530
537
Running the tests
531
538
-----------------
@@ -630,7 +637,23 @@ To test all cachier backends (MongoDB, Redis, SQL, Memory, Pickle) locally with
630
637
# Keep containers running for debugging
631
638
./scripts/test-local.sh all -k
632
639
633
-
The unified test script automatically manages Docker containers, installs required dependencies, and runs the appropriate test suites. See ``scripts/README-local-testing.md`` for detailed documentation.
./scripts/test-local.sh all -f tests/test_main.py -f tests/test_redis_core_coverage.py
645
+
646
+
The unified test script automatically manages Docker containers, installs required dependencies, and runs the appropriate test suites. The ``-f`` / ``--files`` option allows you to run specific test files instead of the entire test suite. See ``scripts/README-local-testing.md`` for detailed documentation.
647
+
648
+
649
+
Running pre-commit hooks locally
650
+
--------------------------------
651
+
652
+
After you've installed test dependencies, you can run pre-commit hooks locally by using the following command:
0 commit comments