Skip to content

Commit

Permalink
test: Make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
abawchen committed Jun 20, 2019
1 parent 517c9ba commit 0a73b71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion graphene_mongo/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

gridfs.enable_gridfs_integration()
mongoengine.connect('graphene-mongo-test', host='mongomock://localhost', alias='default')
# mongoengine.connect('graphene-mongo-test', host='mongodb://192.168.15.91/graphene-mongo-dev')
# mongoengine.connect('graphene-mongo-test', host='mongodb://localhost/graphene-mongo-dev')


class Publisher(mongoengine.Document):
Expand Down Expand Up @@ -32,6 +32,7 @@ class Editor(mongoengine.Document):
metadata = mongoengine.MapField(field=mongoengine.StringField(), help_text="Arbitrary metadata.")
company = mongoengine.LazyReferenceField(Publisher)
avatar = mongoengine.FileField()
seq = mongoengine.SequenceField()


class Article(mongoengine.Document):
Expand Down
2 changes: 1 addition & 1 deletion graphene_mongo/tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_sould_long_convert_int():
assert_conversion(mongoengine.LongField, graphene.Int)


def test_sould_sequence_convert_int():
def test_sould_sequence_convert_field():
assert_conversion(mongoengine.SequenceField, graphene.Int)


Expand Down
2 changes: 1 addition & 1 deletion graphene_mongo/tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_reporter_field_args():
def test_editor_field_args():
field = MongoengineConnectionField(nodes.EditorNode)

field_args = {'id', 'first_name', 'last_name', 'metadata'}
field_args = {'id', 'first_name', 'last_name', 'metadata', 'seq'}
assert set(field.field_args.keys()) == field_args


Expand Down

0 comments on commit 0a73b71

Please sign in to comment.