From c4febcde04c8778f1622a2df713607313c4d7411 Mon Sep 17 00:00:00 2001 From: Jason Kraus Date: Thu, 30 May 2019 14:13:19 -0700 Subject: [PATCH] cover enum case where choice begins with a number --- graphene_django/tests/models.py | 2 +- graphene_django/tests/test_types.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/graphene_django/tests/models.py b/graphene_django/tests/models.py index 4fe546d..2d9b794 100644 --- a/graphene_django/tests/models.py +++ b/graphene_django/tests/models.py @@ -3,7 +3,7 @@ from __future__ import absolute_import from django.db import models from django.utils.translation import ugettext_lazy as _ -CHOICES = ((1, "this"), (2, _("that"))) +CHOICES = ((1, "1: this"), (2, _("2: that"))) class Pet(models.Model): diff --git a/graphene_django/tests/test_types.py b/graphene_django/tests/test_types.py index 16e187a..888faf4 100644 --- a/graphene_django/tests/test_types.py +++ b/graphene_django/tests/test_types.py @@ -172,8 +172,8 @@ type Reporter { } enum ReporterAChoice { - THIS - THAT + A_1_THIS + A_2_THAT } enum ReporterReporterType {