import factory
import pytest
from django.urls import reverse
from pytest_factoryboy import register
from rest_framework.test import APIClient

from adhocracy4.test import factories as a4factories
from adhocracy4.test import helpers

from . import factories

register(factories.UserFactory)
register(factories.OrganisationFactory)
register(factories.UserFactory, 'user2')
register(factories.AdminFactory, 'admin')

register(a4factories.GroupFactory)
register(a4factories.ProjectFactory)
register(a4factories.ModuleFactory)
register(a4factories.PhaseFactory)


def pytest_configure(config):
    # Patch email background_task decorators for all tests
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


@pytest.fixture
def signup_url():
    return reverse('account_signup')

fe9c9d3ff985fa338d1e90ed4d4e3f3c5cdb9b8a
<mask token>


def pytest_configure(config):
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


<mask token>

<mask token>


def pytest_configure(config):
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


@pytest.fixture
def signup_url():
    return reverse('account_signup')

<mask token>
register(factories.UserFactory)
register(factories.OrganisationFactory)
register(factories.UserFactory, 'user2')
register(factories.AdminFactory, 'admin')
register(a4factories.GroupFactory)
register(a4factories.ProjectFactory)
register(a4factories.ModuleFactory)
register(a4factories.PhaseFactory)


def pytest_configure(config):
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


@pytest.fixture
def signup_url():
    return reverse('account_signup')

import factory
import pytest
from django.urls import reverse
from pytest_factoryboy import register
from rest_framework.test import APIClient
from adhocracy4.test import factories as a4factories
from adhocracy4.test import helpers
from . import factories
register(factories.UserFactory)
register(factories.OrganisationFactory)
register(factories.UserFactory, 'user2')
register(factories.AdminFactory, 'admin')
register(a4factories.GroupFactory)
register(a4factories.ProjectFactory)
register(a4factories.ModuleFactory)
register(a4factories.PhaseFactory)


def pytest_configure(config):
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


@pytest.fixture
def signup_url():
    return reverse('account_signup')

import factory
import pytest
from django.urls import reverse
from pytest_factoryboy import register
from rest_framework.test import APIClient

from adhocracy4.test import factories as a4factories
from adhocracy4.test import helpers

from . import factories

register(factories.UserFactory)
register(factories.OrganisationFactory)
register(factories.UserFactory, 'user2')
register(factories.AdminFactory, 'admin')

register(a4factories.GroupFactory)
register(a4factories.ProjectFactory)
register(a4factories.ModuleFactory)
register(a4factories.PhaseFactory)


def pytest_configure(config):
    # Patch email background_task decorators for all tests
    helpers.patch_background_task_decorator('adhocracy4.emails.tasks')


@pytest.fixture
def image():
    return factory.django.ImageField(width=1400, height=1400)


@pytest.fixture
def apiclient():
    return APIClient()


@pytest.fixture
def signup_url():
    return reverse('account_signup')
