hypothesis-graphql

Generate arbitrary queries matching your GraphQL schema, and use them to verify your backend implementation.

MIT License

Downloads
136.8K
Stars
40
Committers
3

Bot releases are hidden (Show)

hypothesis-graphql - Release 0.11.0 Latest Release

Published by Stranger6667 11 months ago

Added

  • Support for Python 3.12.
  • Include tests in the source tarball. #82
  • A way to control what characters are used for string generation via the allow_x00 and codec arguments to queries, mutations, and from_schema.

Changed

  • Bump the minimum supported Hypothesis version to 6.84.3.

Removed

  • Python 3.7 support.
hypothesis-graphql - Release 0.10.0

Published by Stranger6667 over 1 year ago

Changed

  • Build: Switch the build backend to Hatch.

Removed

  • Python 3.6 support.
  • Dependency on attrs.
hypothesis-graphql - Release 0.9.2

Published by Stranger6667 almost 2 years ago

Python 3.11 support

hypothesis-graphql - Release 0.9.1

Published by Stranger6667 about 2 years ago

Use poetry-core for building the package.

hypothesis-graphql - Release 0.9.0

Published by Stranger6667 over 2 years ago

🚀 Added

  • The from_schema function which takes a GraphQL schema and returns a Hypothesis strategy for defined queries and mutations.

🔧 Changed

  • Use Hypothesis' InvalidArgument exception when invalid input is passed to the generator functions.

🗑️ Removed

  • hypothesis_graphql.schemas as it is not complete and not tested well.
hypothesis-graphql - Release 0.8.2

Published by Stranger6667 over 2 years ago

🐛 Bug fixes

  • Internal error on invalid schemas that contain interfaces without fields.
hypothesis-graphql - Release 0.8.1

Published by Stranger6667 over 2 years ago

🚀 Features

  • Expose validate_scalar_strategy in the public API
hypothesis-graphql - Release 0.8.0

Published by Stranger6667 over 2 years ago

🚀 Features

  • Support for using default values of arguments and input fields. #71

🐛 Bug fixes

  • Duplicated inline fragments that may miss aliases. #69
  • Queries missing required fields in their inputs when these fields are custom scalars.
hypothesis-graphql - Release 0.7.1

Published by Stranger6667 over 2 years ago

🚀 Features

  • hypothesis_graphql.nodes module to simplify working with custom scalars.
hypothesis-graphql - Release 0.7.0

Published by Stranger6667 over 2 years ago

🚀 Features

  • Support for custom query printers. #21
  • Support for custom scalars. #22

📦 Other

  • Do not generate fields inside inputs if they have custom scalar types. #38
  • Generate null for nullable custom scalars in the argument position. #35

🔧 Performance

  • Additional strategy cache.
hypothesis-graphql - Release 0.6.1

Published by Stranger6667 over 2 years ago

🔧 Performance

  • Improve performance on recent Hypothesis versions.
hypothesis-graphql - Release 0.6.0

Published by Stranger6667 over 2 years ago

This release adds support for GraphQL mutations, fixes a few missed aliases in generated queries, and improves performance by more than twice.

🚀 Features

  • Python 3.10 support.
  • Mutations support. #51
  • Support PEP-561. #26

🐛 Bug fixes

  • Fields with the same name, but different types. #49
  • Fields with the same name, and the same arguments that have different enum values. #57

🔧 Performance

  • Avoid using st.builds in internal strategies. It gives ~65% data generation time reduction in schemas from the test suite. #14

📦 Other

  • Rename strategies.query to strategies.queries and strategies.schema to strategies.schemas, so they conform with the recommended naming of Hypothesis strategies. Old names are preserved for backward compatibility.
  • Cache parsed GraphQL schemas.
hypothesis-graphql -

Published by Stranger6667 about 3 years ago

🐛 Bug fixes

  • d3259b5 Relax dependency on attrs

🔧 Chores and Improvements

  • f909fda Release 0.5.1
hypothesis-graphql -

Published by Stranger6667 over 3 years ago

🚀 Features

  • 209b923 Support interfaces
  • 70930a1 Support union types

🐛 Bug fixes

  • 4c7bb6e Always generate required fields in argument types
  • 76d99ff Generate only 32-bit signed integers for the Int type

🔧 Chores and Improvements

  • 509d172 Release 0.5.0
  • 2de16a1 Update pre-commit hooks

📦 Other

  • 99410a7 (test) Reduce tests nesting & reuse code
  • 7d2d6e4 Mark the Contentful schema as XFAIL
  • 846ca3f Mark the HIVDB schema as XFAIL
  • d7ce673 Remove obsolete tox envs from CONTRIBUTING.rst
  • 258d9c9 Add test corpus
hypothesis-graphql -

Published by Stranger6667 over 3 years ago

🐛 Bug fixes

  • f3e294f Generating invalid queries for nullable enum types as arguments

🔧 Chores and Improvements

  • f7bfba4 Release 0.4.2
  • 6037a35 Remove print

📦 Other

  • daa10c7 Avoid filtering out empty nodes
hypothesis-graphql -

Published by Stranger6667 over 3 years ago

🐛 Bug fixes

  • 5cee239 Do not generate Unicode surrogates for String types

🔧 Chores and Improvements

  • 41771a1 Release 0.4.1
hypothesis-graphql -

Published by Stranger6667 over 3 years ago

🚀 Features

  • 85edbeb Restricting fields in the query output via the fields argument.

🔧 Chores and Improvements

  • 00091f9 Release 0.4.0
  • c0ca123 Update release job

📦 Other

  • 82b6125 Disable the too_slow health check
hypothesis-graphql -

Published by Stranger6667 almost 4 years ago

🔧 Chores and Improvements

  • 7b5d2f6 Release 0.3.3
  • 959e76c Add RST check & blacken-docs
  • 62096f1 Update pre-commit
  • 037225c Add builds for Python 3.9
  • fbf4709 Relax requirement on Hypothesis
hypothesis-graphql -

Published by Stranger6667 about 4 years ago

🔧 Chores and Improvements

  • 0e77fc2 Release 0.3.2
  • 8260679 Add issue templates
  • 29a6805 Shrink enums to their first values
  • d719e12 Handle custom scalars gracefully
  • 0e89b09 Formatting in build job
  • 082c6ca Add gitter link
  • 417278b Update pre-commit
  • 7842581 Create FUNDING.yml

📦 Other

  • b0be4e0 Add changelog
  • 699b8e6 Add tests for shrinking behavior
  • 500f393 Fix CI badge
hypothesis-graphql -

Published by Stranger6667 over 4 years ago

🚀 Features

  • 8a0db3e Support creating query strategy from GraphQLSchema instances

🔧 Chores and Improvements

  • 64c8bfa Release 0.3.1

📦 Other

  • 7f611ba Cleanup README