python-hyper / python-hyper/h2

Add support for property-based tests for Settings equality.

Open
#466 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Testing
Dominant language
Python
Stars
1k
Forks
187
PR merge metrics
No merged PRs in 30d

Description

Follows on from #464 and #465.

We've added some specific tests for the Settings object's equality behaviour, and have reached some minimum code coverage, but this is really something that hypothesis should be able to help us with.

In particular, it should be reasonably possible to construct a Hypothesis strategy that will produce Settings objects that we can then evaluate. This is not an easy thing to do as it requires some familiarity with Hypothesis to pull off, but is probably a worthwhile challenge for anyone who wants to get their hands dirty with Hypothesis.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing issues #464 and #465 and locating the existing tests for the Settings object's equality behavior. Study Hypothesis strategies and construct one that produces Settings objects; the work is done when property-based tests evaluate the equality behavior and pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.