Open budziq opened 7 years ago
@fitzgen I've pushed commit providing a test for the negative_label filtering.
I can't really say that I love how the test was written and how mock_struct_data had to be reorganized (or butchered) for the feature to be testable. It seams that the filtering might have a manageable/testable form if it were part of the github client.
Should I rewrite?
re testing, could you factor out the filtering from the fetch
function and test just the filtering with a unit test, rather than testing the whole fetch?
@nrc thanks for the review! I'll update the PR later this week.
Already configured for cookbook and bindgen.
fixes https://github.com/nrc/find-work/issues/15