def setUpTestData(cls): cls.communities = [ Community(name="test-1", value="64500:1", type=COMMUNITY_TYPE_EGRESS), Community(name="test-2", value="64500:2", type=COMMUNITY_TYPE_INGRESS), Community(name="test-3", value="64500:3", type="unknown"), ] Community.objects.bulk_create(cls.communities)
def setUpTestData(cls): Community.objects.bulk_create( [ Community( name="Community 1", value="64500:1", type=COMMUNITY_TYPE_EGRESS ), Community(name="Community 2", value="64500:2"), Community(name="Community 3", value="64500:3"), ] )
def setUpTestData(cls): Community.objects.bulk_create([ Community( name="Community 1", slug="community-1", value="64500:1", type=CommunityType.EGRESS, ), Community(name="Community 2", slug="community-2", value="64500:2"), Community(name="Community 3", slug="community-3", value="64500:3"), ])
def setUpTestData(cls): Community.objects.bulk_create([ Community(name="Community 1", slug="community-1", value="64500:1"), Community(name="Community 2", slug="community-2", value="64500:2"), Community(name="Community 3", slug="community-3", value="64500:3"), ]) cls.form_data = { "name": "Community 4", "slug": "community-4", "value": "64500:4", "type": CommunityType.INGRESS, "comments": "", "tags": "", } cls.bulk_edit_data = {"comments": "New comments"}
def setUpTestData(cls): cls.communities = [ Community( name="test-1", slug="test-1", value="64500:1", type=CommunityType.EGRESS, ), Community( name="test-2", slug="test-2", value="64500:2", type=CommunityType.INGRESS, ), Community(name="test-3", slug="test-3", value="64500:3", type="unknown"), ] Community.objects.bulk_create(cls.communities)
def setUpTestData(cls): Community.objects.bulk_create([ Community( name="Example 1", slug="example-1", value="64500:1", type=CommunityType.EGRESS, ), Community( name="Example 2", slug="example-2", value="64500:2", type=CommunityType.EGRESS, ), Community( name="Example 3", slug="example-3", value="64500:3", type=CommunityType.EGRESS, ), ])
def setUpTestData(cls): Community.objects.bulk_create([ Community(name="Community 1", description="community1", value="64500:1"), Community(name="Community 2", description="community2", value="64500:2"), Community(name="Community 3", description="community3", value="64500:3"), ]) cls.form_data = { "name": "Community 4", "description": "community4", "value": "64500:4", "type": COMMUNITY_TYPE_INGRESS, "comments": "", "tags": "", } cls.bulk_edit_data = {"comments": "New comments"}