Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Jun 29, 2023
1 parent 1178b4f commit c9c2597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ The `test` module offers extra functions for unit tests.

.. autoclass:: django_marina.test.test_cases.ExtendedTestCase
:members:

.. autoclass:: django_marina.test.runners.TempMediaDiscoverRunner
3 changes: 2 additions & 1 deletion src/django_marina/test/runners.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import shutil
import tempfile

from django.conf import settings
Expand Down Expand Up @@ -31,4 +32,4 @@ def teardown_test_environment(self):


class TempMediaDiscoverRunner(TempMediaMixin, DiscoverRunner):
"""Use temporary files for media storage in tests."""
"""Default Django DiscoverRunner, modified to write media files to a temp folder."""

0 comments on commit c9c2597

Please sign in to comment.