processing / processing/processing-contributions

Unit tests for scripts/to_contribs_txt.py

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

Nobody has claimed this yet.

Dominant language
Python
Stars
8
Forks
8
Avg merge
4d 22h
Merged PRs (30d)
3

Description

there is one function in this script that could be unit tested. This could be modularized to enable unit testing.
Use mocks and table tests to test edge cases.

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 with scripts/to_contribs_txt.py and identify the single function described in the issue. Read how the script currently handles its inputs, then modularize the relevant logic so it can be unit tested with mocks and table-driven cases covering edge cases. Done means the tests exercise those cases and pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.