1
Fork 0
This repository has been archived on 2024-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-draftail-snippet/tests/fixtures.py
2020-02-14 22:23:14 -05:00

17 lines
336 B
Python

import pytest
from wagtail.core.models import Site
from tests.testapp import factories
@pytest.fixture
def site():
site = Site.objects.get(is_default_site=True)
return site
@pytest.fixture()
def advert():
advert = factories.AdvertFactory(text="advert", url="https://www.example.com")
advert.save()
yield advert