datatracker/ietf/mailinglists/factories.py
Robert Sparks efdaee3bb3
feat: decouple from mailman2 - explicitly model nonwg mailing lists (#7013)
* fix: remove synchronization with mailman2

* feat: manage non wg mailing lists explicitly

* chore: black

* fix: update tests for new nonwg view

* feat: drop unused models
2024-02-05 09:28:23 -06:00

17 lines
392 B
Python

# Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*-
import factory
from ietf.mailinglists.models import NonWgMailingList
class NonWgMailingListFactory(factory.django.DjangoModelFactory):
class Meta:
model = NonWgMailingList
name = factory.Sequence(lambda n: "list-name-%s" % n)
description = factory.Faker('sentence', nb_words=10)