Skip to content

Commit

Permalink
Update readme with test suites running options
Browse files Browse the repository at this point in the history
  • Loading branch information
shaypal5 committed Dec 2, 2022
1 parent 2663f09 commit c4fa406
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 142,7 @@ As mentioned above, the positional and keyword arguments to the wrapped function
@cachier(hash_params=hash_my_custom_class)
def calculate_super_complex_stuff(custom_obj):
# amazing code goes here
See here for an example:

`Question: How to work with unhashable arguments <https://github.com/shaypal5/cachier/issues/91>`_
Expand Down Expand Up @@ -291,12 291,31 @@ To run the tests, call the ``pytest`` command in the repository's root, or:
python -m pytest
To run only pickle core related tests, use:
To run only MongoDB core related tests, use:

.. code-block:: bash
pytest -m mongo
To run only memory core related tests, use:

.. code-block:: bash
pytest -m memory
To run all tests EXCEPT MongoDB core related tests, use:

.. code-block:: bash
pytest -m "not mongo"
To run all tests EXCEPT memory core AND MongoDB core related tests, use:

.. code-block:: bash
pytest -m "not (mongo or memory)"
Adding documentation
--------------------
Expand Down

0 comments on commit c4fa406

Please sign in to comment.