Пример #1
0
 def test_argument_named_self(self):
     assert _.foo(self=4, bla=3) == SelectionSet(
         Field("foo", fdict({
             "self": 4,
             "bla": 3
         })))
Пример #2
0
 def test_empty(self):
     assert _.foo() == SelectionSet(Field("foo"))
Пример #3
0
 def test_argument_named_self(self):
     assert _.foo(self=4, bla=3) == SelectionSet(
         Field('foo', fdict({
             'self': 4,
             'bla': 3
         })))
Пример #4
0
 def test_simple(self):
     assert _.foo(bla=4, bar=None) == SelectionSet(
         Field("foo", {
             "bla": 4,
             "bar": None
         }))
Пример #5
0
 def test_simple(self):
     assert _.foo(bla=4, bar=None) == SelectionSet(
         Field('foo', {
             'bla': 4,
             'bar': None
         }), )