We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5837ac commit b417a65Copy full SHA for b417a65
graphene/core/tests/test_options.py renamed to graphene/core/classtypes/test_options.py
@@ -1,31 +1,17 @@
1
from py.test import raises
2
3
from graphene.core.fields import Field
4
-from graphene.core.options import Options
+from graphene.core.classtypes import Options
5
6
7
class Meta:
8
- is_interface = True
9
type_name = 'Character'
10
11
12
class InvalidMeta:
13
other_value = True
14
15
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
29
def test_options_contribute():
30
opt = Options(Meta)
31
0 commit comments