mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Use tempfile.TemporaryDirectory() in AdminScriptTestCase.setUp() to create and destroy a temporary directory for each test. It removes the need for individual tests to delete files. For test classes that don't use the temporary directory, inherit from SimpleTestCase. |
||
|---|---|---|
| .. | ||
| another_app_waiting_migration | ||
| app_raising_messages | ||
| app_raising_warning | ||
| app_waiting_migration | ||
| app_with_import | ||
| broken_app | ||
| complex_app | ||
| custom_templates | ||
| management/commands | ||
| simple_app | ||
| __init__.py | ||
| configured_settings_manage.py | ||
| tests.py | ||
| urls.py | ||