processing / processing/processing-contributions

unit tests for scripts/to_source_jsons.py

Open
#82 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 to be tested. It could be modularized further to enable unit tests.
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 by reading scripts/to_source_jsons.py and identify its single function and the cases it handles. Modularize only as needed for unit testing, then use mocks and table tests to cover the relevant edge cases; the work is done when those tests exercise the function's behavior reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing, tooling
Issue type
Feature
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.