File: test_apps.py

package info (click to toggle)
python-django-pgschemas 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 848 kB
  • sloc: python: 3,887; makefile: 33; sh: 10; sql: 2
file content (17 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from unittest.mock import patch

from django.apps import apps


@patch("django_pgschemas.checks.ensure_tenant_dict")
@patch("django_pgschemas.checks.ensure_public_schema")
@patch("django_pgschemas.checks.ensure_default_schemas")
@patch("django_pgschemas.checks.ensure_overall_schemas")
@patch("django_pgschemas.checks.ensure_extra_search_paths")
def test_all_checkers_called(*checkers):
    config = apps.get_app_config("django_pgschemas")

    config.ready()

    for checker in checkers:
        checker.assert_called()