import pytest
from django.core.management import call_command


@pytest.fixture(scope='session', autouse=True)
def django_db_setup(django_db_setup, django_db_blocker):
    with django_db_blocker.unblock():
        print('loading fixtures')
        call_command('loaddata', 'fixtures/category.json')
