# -*- coding: utf-8 -*-
import pytest

from django.core.management import call_command

from .. import factories as f


@pytest.mark.django_db
def test_emails():
    # Membership invitation
    m = f.MembershipFactory.create()
    m.user = None
    m.save()

    # Regular membership
    f.MembershipFactory.create()

    # f.UserFactory.create()
    call_command('test_emails', 'none@example.test')

c662dd195a227801e3abe8abd6d6d4c21cdc2124
<mask token>

<mask token>


@pytest.mark.django_db
def test_emails():
    m = f.MembershipFactory.create()
    m.user = None
    m.save()
    f.MembershipFactory.create()
    call_command('test_emails', 'none@example.test')

import pytest
from django.core.management import call_command
from .. import factories as f


@pytest.mark.django_db
def test_emails():
    m = f.MembershipFactory.create()
    m.user = None
    m.save()
    f.MembershipFactory.create()
    call_command('test_emails', 'none@example.test')

# -*- coding: utf-8 -*-
import pytest

from django.core.management import call_command

from .. import factories as f


@pytest.mark.django_db
def test_emails():
    # Membership invitation
    m = f.MembershipFactory.create()
    m.user = None
    m.save()

    # Regular membership
    f.MembershipFactory.create()

    # f.UserFactory.create()
    call_command('test_emails', 'none@example.test')
