Skip to content

Commit b417a65

Browse files
committed
Fixed options tests
1 parent f5837ac commit b417a65

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

graphene/core/tests/test_options.py renamed to graphene/core/classtypes/test_options.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
from py.test import raises
22

33
from graphene.core.fields import Field
4-
from graphene.core.options import Options
4+
from graphene.core.classtypes import Options
55

66

77
class Meta:
8-
is_interface = True
98
type_name = 'Character'
109

1110

1211
class InvalidMeta:
1312
other_value = True
1413

1514

16-
def test_field_added_in_meta():
17-
opt = Options(Meta)
18-
19-
class ObjectType(object):
20-
pass
21-
22-
opt.contribute_to_class(ObjectType, '_meta')
23-
f = Field(None)
24-
f.attname = 'string_field'
25-
opt.add_field(f)
26-
assert f in opt.fields
27-
28-
2915
def test_options_contribute():
3016
opt = Options(Meta)
3117

0 commit comments

Comments
 (0)