diff --git a/docs/test.rst b/docs/test.rst index c6dac7d..e868d82 100644 --- a/docs/test.rst +++ b/docs/test.rst @@ -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 diff --git a/src/django_marina/test/runners.py b/src/django_marina/test/runners.py index e0315a2..23171d9 100644 --- a/src/django_marina/test/runners.py +++ b/src/django_marina/test/runners.py @@ -1,3 +1,4 @@ +import shutil import tempfile from django.conf import settings @@ -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."""