From 43a8f58f2090f72e5c3662213e3de027fa29f37b Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Sat, 4 Dec 2021 18:41:04 +0100 Subject: [PATCH] Add docs --- docs/test.rst | 2 ++ src/django_marina/test/runners.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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."""