repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graphql-python/graphene | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | train | train | graphene/types/tests/test_base.py | test_basetype | assert | none_literal | 10 | from ..base import BaseOptions, BaseType
def test_basetype():
class MyBaseType(CustomType):
pass
assert isinstance(MyBaseType._meta, CustomOptions)
assert MyBaseType._meta.name == "MyBaseType"
assert MyBaseType._meta.description is | None | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | v2_extractor_at_anchor |
graphql-python/graphene | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | train | train | graphene/types/tests/test_datetime.py | test_bad_datetime_query | assert | none_literal | 18 | import datetime
import pytz
from graphql import GraphQLError
from ..datetime import Date, DateTime, Time
from ..objecttype import ObjectType
from ..schema import Schema
def test_bad_datetime_query():
not_a_date = "Some string that's not a date"
result = schema.execute("""{ datetime(in: "%s") }""" % not_a_da... | None | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | v2_extractor_at_anchor |
graphql-python/graphene | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | train | train | graphene/types/tests/test_field.py | test_field_source_argument_as_kw | assert | none_literal | 20 | from functools import partial
import pytest
from ..argument import Argument
from ..field import Field
from ..scalars import String
from ..structures import NonNull
from .utils import MyLazyType
def test_field_source_argument_as_kw():
MyType = object()
field = Field(MyType, b=NonNull(True), c=Argument(None), ... | None | bfd6fd7c49f4181ff4d83b695675db76aa6ee4d0 | 284 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | examples/starwars/tests/test_connections.py | test_correct_fetch_first_ship_rebels | assert | variable | 37 | import pytest
from ..data import initialize
from ..schema import schema
pytestmark = pytest.mark.django_db
def test_correct_fetch_first_ship_rebels():
initialize()
query = """
query RebelsShipsQuery {
rebels {
name,
hero {
name
}
ships(first: 1) {
... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | examples/starwars/tests/test_mutation.py | test_mutations | assert | variable | 53 | import pytest
from ..data import initialize
from ..schema import schema
pytestmark = pytest.mark.django_db
def test_mutations():
initialize()
query = """
mutation MyMutation {
introduceShip(input:{clientMutationId:"abc", shipName: "Peter", factionId: "1"}) {
ship {
id
n... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | examples/starwars/tests/test_objectidentification.py | test_correctly_fetches_id_name_rebels | assert | variable | 24 | import pytest
from ..data import initialize
from ..schema import schema
pytestmark = pytest.mark.django_db
def test_correctly_fetches_id_name_rebels():
initialize()
query = """
query RebelsQuery {
rebels {
id
name
}
}
"""
expected = {
"rebels": ... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_nested_field | assert | numeric_literal | 77 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | 5 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_connection | assert | numeric_literal | 56 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | 2 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_stack_trace | assert | numeric_literal | 45 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
def test_should_query_stack_trace():
class ReporterType(DjangoObject... | 1 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_nested_field | assert | variable | 72 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | query | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_field | assert | variable | 51 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
def test_should_query_field():
r1 = Reporter(last_name="ABA")
r1... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_nested_field | assert | complex_expr | 79 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | expected["reporter"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_stack_trace | assert | string_literal | 47 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
def test_should_query_stack_trace():
class ReporterType(DjangoObject... | "caught stack trace" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_connection | assert | complex_expr | 55 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | expected["allReporters"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_stack_trace | assert | complex_expr | 46 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
def test_should_query_stack_trace():
class ReporterType(DjangoObject... | debug_exception["stack"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_nested_field | assert | complex_expr | 73 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | result.data["_debug"]["sql"][1]["rawSql"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_nested_field | assert | complex_expr | 74 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | result.data["_debug"]["sql"][2]["rawSql"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/debug/tests/test_query.py | test_should_query_connection | assert | complex_expr | 57 | import graphene
import pytest
from graphene.relay import Node
from graphene_django import DjangoConnectionField, DjangoObjectType
from ...tests.models import Reporter
from ..middleware import DjangoDebugMiddleware
from ..types import DjangoDebug
@pytest.mark.parametrize("max_limit", [None, 100])
def test_should_query... | result.data["_debug"]["sql"][0]["rawSql"] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_contains_filter.py | test_array_field_contains_multiple | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_contains_multiple(Query):
"""
Test contains filter on a array field of string.
"""
schema = Schema(query=Query... | [ {"node": {"name": "Live Show"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_contains_filter.py | test_array_field_contains_one | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_contains_one(Query):
"""
Test contains filter on a array field of string.
"""
schema = Schema(query=Query)
... | [ {"node": {"name": "Live Show"}}, {"node": {"name": "Musical"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_contains_filter.py | test_array_field_contains_empty_list | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_contains_empty_list(Query):
"""
Test contains filter on a array field of string.
"""
schema = Schema(query=Que... | [ {"node": {"name": "Live Show"}}, {"node": {"name": "Musical"}}, {"node": {"name": "Ballet"}}, {"node": {"name": "Speech"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_exact_filter.py | test_array_field_exact_no_match | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_exact_no_match(Query):
"""
Test exact filter on a array field of string.
"""
schema = Schema(query=Query)
... | [] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_exact_filter.py | test_array_field_filter_schema_type | assert | variable | 16 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_filter_schema_type(Query):
"""
Check that the type in the filter is an array field like on the object type.
"""
... | schema_str | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_exact_filter.py | test_array_field_exact_empty_list | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_exact_empty_list(Query):
"""
Test exact filter on a array field of string.
"""
schema = Schema(query=Query)
... | [ {"node": {"name": "Speech"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_exact_filter.py | test_array_field_exact_match | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_exact_match(Query):
"""
Test exact filter on a array field of string.
"""
schema = Schema(query=Query)
qu... | [ {"node": {"name": "Musical"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_overlap_filter.py | test_array_field_overlap_empty_list | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_overlap_empty_list(Query):
"""
Test overlap filter on a array field of string.
"""
schema = Schema(query=Query... | [] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_overlap_filter.py | test_array_field_overlap_one | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_overlap_one(Query):
"""
Test overlap filter on a array field of string.
"""
schema = Schema(query=Query)
... | [ {"node": {"name": "Live Show"}}, {"node": {"name": "Musical"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_array_field_overlap_filter.py | test_array_field_overlap_multiple | assert | collection | 29 | import pytest
from graphene import Schema
from ...compat import ArrayField, MissingType
@pytest.mark.skipif(ArrayField is MissingType, reason="ArrayField should exist")
def test_array_field_overlap_multiple(Query):
"""
Test overlap filter on a array field of string.
"""
schema = Schema(query=Query)
... | [ {"node": {"name": "Live Show"}}, {"node": {"name": "Musical"}}, {"node": {"name": "Ballet"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_enum_filtering.py | test_filter_enum_on_connection | assert | variable | 74 | import pytest
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType, DjangoConnectionField
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ReporterType(DjangoObjectType... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_enum_filtering.py | test_filter_enum_field_schema_type | assert | variable | 60 | import pytest
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType, DjangoConnectionField
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ReporterType(DjangoObjectType... | schema_str | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_filter_shortcut_filterset_context | assert | numeric_literal | 88 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | 1 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_filter_filterset_related_results_with_filter | assert | numeric_literal | 75 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | 2 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | assert_orderable | assert | variable | 31 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | args | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_filter_shortcut_filterset_context | assert | string_literal | 89 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | "a2" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_filter_explicit_filterset_orderable | assert_* | variable | 39 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | field) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_filterset_descriptions | assert | variable | 50 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | Decimal | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_fields.py | test_should_query_filter_node_limit | assert | variable | 135 | from datetime import datetime
from textwrap import dedent
import pytest
from django.db.models import TextField, Value
from django.db.models.functions import Concat
from graphene import Argument, Boolean, Decimal, Field, ObjectType, Schema, String
from graphene.relay import Node
from graphene_django import DjangoObjec... | expected | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_in_filter_with_empty_list | assert | numeric_literal | 108 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | 0 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_enum_in_filter | assert | collection | 118 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"email": "john@doe.com"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_string_in_filter_with_otjer_filter | assert | collection | 108 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"name": "John"}}, {"node": {"name": "Michael"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_int_in_filter | assert | collection | 108 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"name": "Mimi"}}, {"node": {"name": "Jojo, the rabbit"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_string_in_filter | assert | collection | 108 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"name": "Brutus"}}, {"node": {"name": "Jojo, the rabbit"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_enum_in_filter | assert | collection | 135 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"email": "jean@bon.com"}}, {"node": {"email": "jane@doe.com"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_int_in_filter | assert | collection | 126 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"name": "Brutus"}}, {"node": {"name": "Mimi"}}, {"node": {"name": "Jojo, the rabbit"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_enum_in_filter | assert | collection | 153 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"email": "john@doe.com"}}, {"node": {"email": "jean@bon.com"}}, {"node": {"email": "jane@doe.com"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_fk_id_in_filter | assert | collection | 141 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ {"node": {"headline": "A", "reporter": {"lastName": "Doe"}}}, {"node": {"headline": "B", "reporter": {"lastName": "Bon"}}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_in_filter.py | test_choice_in_filter_without_enum | assert | collection | 126 | from datetime import datetime
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet, Person, Reporter, Art... | [ { "node": { "genre": "do", "reporters": {"edges": [{"node": {"lastName": "Doe"}}]}, } }, { "node": { "genre": "ac", "reporters": {"edges": [{"node": {"lastName": "Doe"}}]}, } }, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_range_filter.py | test_range_filter_with_invalid_input | assert | numeric_literal | 50 | import json
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet
from graphene_django.utils import DJANGO_... | 1 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_range_filter.py | test_range_filter_with_invalid_input | assert | variable | 51 | import json
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet
from graphene_django.utils import DJANGO_... | expected_error | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_range_filter.py | test_int_range_filter | assert | collection | 39 | import json
import pytest
from django_filters import FilterSet
from django_filters import rest_framework as filters
from graphene import ObjectType, Schema
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Pet
from graphene_django.utils import DJANGO_... | [ {"node": {"name": "Mimi"}}, {"node": {"name": "Picotin"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_typed_filter.py | test_typed_filter_schema | assert | variable | 86 | import pytest
from django_filters import FilterSet
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ArticleFilterS... | all_articles_filters | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_typed_filter.py | test_typed_filters_work | assert | collection | 92 | import pytest
from django_filters import FilterSet
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ArticleFilterS... | [ {"node": {"headline": "C"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_typed_filter.py | test_typed_filters_work | assert | collection | 109 | import pytest
from django_filters import FilterSet
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ArticleFilterS... | [ {"node": {"headline": "A"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/filter/tests/test_typed_filter.py | test_typed_filters_work | assert | collection | 74 | import pytest
from django_filters import FilterSet
import graphene
from graphene.relay import Node
from graphene_django import DjangoObjectType
from graphene_django.tests.models import Article, Reporter
from graphene_django.utils import DJANGO_FILTER_INSTALLED
pytestmark = []
def schema():
class ArticleFilterS... | [ {"node": {"headline": "A"}}, {"node": {"headline": "B"}}, ] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_model_multiple_choice_convert_connectionorlist | assert | variable | 35 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | ID | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_integer_convert_int | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Int) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_date_convert_date | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Date) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_time_convert_time | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Time) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_uuid_convert_string | assert_* | variable | 33 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | UUID) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_multiple_choice_convert_list | assert | variable | 35 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | String | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_float_convert_float | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Float) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_char_convert_string | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | String) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_boolean_convert_boolean | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Boolean) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_decimal_convert_decimal | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | Decimal) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_date_time_convert_date_time | assert_* | variable | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | DateTime) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_regex_convert_string | assert_* | string_literal | 32 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | "[0-9]+") | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | assert_conversion | assert | string_literal | 28 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | "Custom Help Text" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_converter.py | test_should_unknown_django_field_raise_exception | assert | func_call | 34 | from django import forms
from py.test import raises
import graphene
from graphene import (
String,
Int,
Boolean,
Decimal,
Float,
ID,
UUID,
List,
NonNull,
DateTime,
Date,
Time,
)
from ..converter import convert_form_field
def assert_conversion(django_field, graphene_fie... | str(excinfo.value) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_model_form_mutation_mutate_existing | assert | numeric_literal | 39 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | 1 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_model_form_mutation_invalid_input | assert | numeric_literal | 42 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | 0 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_model_form_mutation_mutate_invalid_form | assert | numeric_literal | 22 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | 2 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_form_valid_input | assert | collection | 39 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | [] | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_model_form_mutation_creates_new | assert | numeric_literal | 42 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | 10 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_default_meta_fields | assert | variable | 16 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | Pet | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/forms/tests/test_mutation.py | test_form_invalid_form | assert | none_literal | 38 | import pytest
from django import forms
from django.core.exceptions import ValidationError
from py.test import raises
from graphene import Field, ObjectType, Schema, String
from graphene_django import DjangoObjectType
from graphene_django.tests.forms import PetForm
from graphene_django.tests.models import Pet
from grap... | None | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_choice_convert_enum | assert | string_literal | 50 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | "h" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_choice_convert_enum | assert | string_literal | 52 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | "w" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_list_serializer_convert_to_list | assert | none_literal | 68 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | None | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_choice_convert_enum | assert | string_literal | 51 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | "Hello" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_choice_convert_enum | assert | string_literal | 53 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | "World" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_dict_convert_dict | assert_* | variable | 44 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | DictType) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_list_convert_to_list | assert | complex_expr | 53 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.Int | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_integer_convert_int | assert_* | complex_expr | 44 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.Int) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_choice_convert_enum | assert_* | complex_expr | 44 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.Enum) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_list_convert_to_list | assert_* | complex_expr | 47 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.List) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_list_convert_to_list | assert | complex_expr | 57 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.String | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_model_convert_field | assert_* | complex_expr | 49 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.Field) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_float_convert_float | assert_* | complex_expr | 44 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.Float) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_field_converter.py | test_should_char_convert_string | assert_* | complex_expr | 44 | import copy
import graphene
from django.db import models
from graphene import InputObjectType
from py.test import raises
from rest_framework import serializers
from ..serializer_converter import convert_serializer_field
from ..types import DictType
def _get_type(
rest_framework_field, is_input=True, convert_choi... | graphene.String) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_perform_mutate_success | assert | numeric_literal | 43 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | 4 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_mutate_and_get_payload_error | assert | numeric_literal | 37 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | 0 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_mutate_and_get_payload_success | assert | none_literal | 38 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | None | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_model_add_mutate_and_get_payload_success | assert | string_literal | 35 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | "Narf" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_model_update_mutate_and_get_payload_success | assert | string_literal | 36 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | "New Narf" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_mutation_error_camelcased | assert | string_literal | 33 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | "coolName" | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_model_invalid_update_mutate_and_get_payload_success | assert | func_call | 41 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | str(exc.value) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/rest_framework/tests/test_mutation.py | test_has_fields | assert | complex_expr | 35 | import datetime
from py.test import raises
from rest_framework import serializers
from graphene import Field, ResolveInfo
from graphene.types.inputobjecttype import InputObjectType
from ...types import DjangoObjectType
from ..models import MyFakeModel, MyFakeModelWithDate, MyFakeModelWithPassword
from ..mutation imp... | MyMutation._meta.fields | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/tests/test_command.py | test_json_files_are_canonical | assert | numeric_literal | 22 | from textwrap import dedent
from django.core import management
from io import StringIO
from mock import mock_open, patch
from graphene import ObjectType, Schema, String
@patch("json.dump")
def test_json_files_are_canonical(dump_mock):
open_mock = mock_open()
with patch("graphene_django.management.commands.gr... | 0 | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/tests/test_command.py | test_generate_json_file_on_call_graphql_schema | assert | func_call | 14 | from textwrap import dedent
from django.core import management
from io import StringIO
from mock import mock_open, patch
from graphene import ObjectType, Schema, String
@patch("graphene_django.management.commands.graphql_schema.Command.save_json_file")
def test_generate_json_file_on_call_graphql_schema(savefile_mock... | out.getvalue() | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
graphql-python/graphene-django | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | train | train | graphene_django/tests/test_command.py | test_generate_graphql_file_on_call_graphql_schema | assert | func_call | 28 | from textwrap import dedent
from django.core import management
from io import StringIO
from mock import mock_open, patch
from graphene import ObjectType, Schema, String
def test_generate_graphql_file_on_call_graphql_schema():
class Query(ObjectType):
hi = String()
mock_schema = Schema(query=Query)
... | dedent( """\ type Query { hi: String } """ ) | e1a7d1983314174c91ede1ebbfe35a9009cf6268 | 145 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.