Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary dependency on 'promise' library #1476

Merged

Conversation

mike-roberts-healx
Copy link
Contributor

Previously, installing graphene and trying to do from graphene.test import Client as recommended in the docs caused an ImportError, as the 'promise' library is imported but only listed as a requirement in the 'test' section of the setup.py file.

Based on #1297 which appears to be inactive. Fixes #1296.

@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Base: 95.88% // Head: 95.93% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (f2e2db5) compared to base (ccdd35b).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head f2e2db5 differs from pull request most recent head bfd0b34. Consider uploading reports for the commit bfd0b34 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1476      +/-   ##
==========================================
+ Coverage   95.88%   95.93%   +0.05%     
==========================================
  Files          50       50              
  Lines        1724     1724              
==========================================
+ Hits         1653     1654       +1     
+ Misses         71       70       -1     
Impacted Files Coverage Δ
graphene/test/__init__.py 85.18% <100.00%> (+3.70%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Previously, installing graphene and trying to do `from graphene.test import Client`
as recommended in the docs caused an `ImportError`, as the 'promise' library
is imported but only listed as a requirement in the 'test' section of the setup.py
file.
@erikwrede
Copy link
Member

erikwrede commented Nov 16, 2022

My enter key was stuck on merge, so here's a more complete merge Message for future reference:
feat: Graphene TestClient supports async execution refactor: Dependency on Promise was removed as it is no longer supported by graphql-core

Thanks for getting this done 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Client is still promise based
2 participants