CDCgov / CDCgov/PyRenew

Tests for `InfectionsWithFeedback` class

Open
#394 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

testing
Dominant language
Python
Stars
29
Forks
9
Avg merge
9d 9h
Merged PRs (30d)
8

Description

All existing tests were able to pass with a bug in the InfectionsWithFeedback class. Only attempting to render the extending_pyrenew.qmd tutorial revealed it. We should have:

  1. A test confirming that InfectionsWithFeedback can be instantiated and sampled.
  2. A test comparing infections with feedback computed using the class to a manual computation.

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 inspecting the InfectionsWithFeedback class and the extending_pyrenew.qmd tutorial, where the bug was exposed. Add coverage showing that the class can be instantiated and sampled, then compare its computed infections-with-feedback result with a manual computation. Run the relevant test suite and confirm both cases pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.