mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Runs the pre-commit hooks over all the Python files
This commit is contained in:
@@ -7,7 +7,8 @@ from contextlib import contextmanager
|
||||
from django.apps import apps
|
||||
from django.db import connection
|
||||
from django.db.migrations.executor import MigrationExecutor
|
||||
from django.test import override_settings, TransactionTestCase
|
||||
from django.test import override_settings
|
||||
from django.test import TransactionTestCase
|
||||
|
||||
|
||||
def setup_directories():
|
||||
@@ -97,7 +98,7 @@ class TestMigrations(TransactionTestCase):
|
||||
assert (
|
||||
self.migrate_from and self.migrate_to
|
||||
), "TestCase '{}' must define migrate_from and migrate_to properties".format(
|
||||
type(self).__name__
|
||||
type(self).__name__,
|
||||
)
|
||||
self.migrate_from = [(self.app, self.migrate_from)]
|
||||
self.migrate_to = [(self.app, self.migrate_to)]
|
||||
|
Reference in New Issue
Block a user