get-woke / woke

Detect non-inclusive language in your source code.
https://docs.getwoke.tech
MIT License
457 stars 61 forks source link

refactor UT to make it easier to test glob expansion #247

Open sebastien-rosset opened 2 years ago

sebastien-rosset commented 2 years ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This is a small UT refactor to make it easier to add future sub-tests in TestParseArgs. Each test case is now executed as a sub-test. This is used to add UTs in https://github.com/get-woke/woke/pull/211. The purpose of this PR is to show the refactor without changing the set of UTs.

What is the current behavior? (You can also link to an open issue here)

Currently, there are no sub-tests for file glob patterns.

What is the new behavior (if this is a feature change)?

No change.

Does this PR introduce a breaking change? (What changes might users need to make due to this PR?)

Other information: