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/testapp/factories.py

12 lines
180 B
Python
Raw Permalink Normal View History

2020-02-13 12:23:35 +00:00
import factory
from .models import Advert
class AdvertFactory(factory.Factory):
class Meta:
model = Advert
url = "https://www.example.com"
text = "Example"