mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-04-12 02:58:52 +00:00
fix(profiling): fix stale docstring and add module_db docstring in doclist test
This commit is contained in:
@@ -69,6 +69,7 @@ SEED = 42
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def module_db(django_db_setup, django_db_blocker):
|
||||
"""Unlock the DB for the whole module (module-scoped)."""
|
||||
with django_db_blocker.unblock():
|
||||
yield
|
||||
|
||||
@@ -77,7 +78,7 @@ def module_db(django_db_setup, django_db_blocker):
|
||||
def doclist_corpus(module_db):
|
||||
"""
|
||||
Build a 5 000-document corpus with tags, notes, custom fields, correspondents,
|
||||
doc types, and storage paths. All objects are deleted on teardown.
|
||||
and doc types. All objects are deleted on teardown.
|
||||
"""
|
||||
fake = Faker()
|
||||
Faker.seed(SEED)
|
||||
|
||||
Reference in New Issue
Block a user