Skip to content

Commit

Permalink
Fix marker name in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yakimka committed Oct 25, 2024
1 parent 92b7daa commit d91f8df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,21 @@ Lifespan
By default, Picodi will automatically call :func:`picodi.shutdown_dependencies`
and make additional cleanups after each test.

If you need to call :func:`picodi.init_dependencies` - you can use eponymous marker.
If you need to call :func:`picodi.init_dependencies` - you can use marker.

.. testcode::

import pytest
from picodi import SingletonScope


@pytest.mark.init_dependencies
@pytest.mark.picodi_init_dependencies
async def test_foo():
pass


# Or pass kwargs to fixture
@pytest.mark.init_dependencies(scope_class=SingletonScope)
@pytest.mark.picodi_init_dependencies(scope_class=SingletonScope)
async def test_bar():
pass

Expand Down

0 comments on commit d91f8df

Please sign in to comment.