Dataset Viewer
Auto-converted to Parquet Duplicate
input
stringclasses
326 values
output
stringclasses
36 values
instruction
stringclasses
1 value
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
from django.test import TestCase from oscar.apps.address import models, forms from oscar.test.factories import UserFactory class TestUserAddressForm(TestCase): def setUp(self): self.user = UserFactory() self.country = models.Country.objects.create( iso_3166_1_a2='GB', name="UNITED KI...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
# -*- coding: utf-8 -*- import pytest from django.test import TestCase from django.core import exceptions from oscar.apps.order.models import ShippingAddress from oscar.core.compat import get_user_model from oscar.apps.address import models from oscar.test import factories from tests._site.model_tests_app.models impo...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
from datetime import datetime, date from django.test import TestCase from django.core.exceptions import ValidationError from django.core.files.uploadedfile import SimpleUploadedFile from oscar.test import factories class TestBooleanAttributes(TestCase): def setUp(self): self.attr = factories.ProductAtt...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
# -*- coding: utf-8 -*- from django.core.cache import cache from django.test import TestCase from django.test.utils import override_settings from oscar.apps.catalogue.models import Category from oscar.apps.catalogue.categories import create_from_breadcrumbs from oscar.templatetags.category_tags import get_annotated_li...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
import pytest from django.core.exceptions import ValidationError from oscar.apps.catalogue import models def test_product_attributes_can_contain_underscores(): attr = models.ProductAttribute(name="A", code="a_b") attr.full_clean() def test_product_attributes_cant_contain_hyphens(): attr = models.Produc...
Given the following code snippet, write an integration test for it.
I need integration test for this code import re import zlib from django.conf import settings from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.translation import pgettext_lazy from phonenumber_field.modelfields import PhoneNumberFi...
from django.test import TestCase from oscar.test import factories from oscar.core.loading import get_model Product = get_model('catalogue', 'Product') class ProductOptionTests(TestCase): def setUp(self): self.product_class = factories.ProductClassFactory() self.product = factories.create_produc...
Given the following code snippet, write an integration test for it.
"I need integration test for this code\n\nimport re\nimport zlib\n\nfrom django.conf import settings(...TRUNCATED)
"# coding=utf-8\nfrom django.db import IntegrityError\nfrom django.test import TestCase\nfrom django(...TRUNCATED)
Given the following code snippet, write an integration test for it.
"I need integration test for this code\n\nimport re\nimport zlib\n\nfrom django.conf import settings(...TRUNCATED)
"from django.test import TestCase\n\nfrom oscar.apps.catalogue import models\n\n\nclass TestProductC(...TRUNCATED)
Given the following code snippet, write an integration test for it.
"I need integration test for this code\n\nimport re\nimport zlib\n\nfrom django.conf import settings(...TRUNCATED)
"import os\nimport tempfile\nfrom unittest import mock\n\nfrom django.contrib.staticfiles.testing im(...TRUNCATED)
Given the following code snippet, write an integration test for it.
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
1