Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor tests/test_regex_identifier.py (#202)
* refactor: basic implementation of using pytest.mark.parametrize on regex.json * refactor: move _assert_match_first_item seperate tests into paramaterized tests * feat: rename `Matches` to `Examples.Valid` * refactor: parametrize assert name not in res tests * fix: ip is a valid url * refactor: convert more _assert_match_first_item tests * fix: extra comma in json * refactor: paramterize other tests * fix(data/regex): jcb card number is valid * fix(data/regex): Amazon Web Services Secret Access Key typo * fix(test): unix_timestamp match tests * refactor(test): create `regex_valid_match` function * refactor(test): move database tests to tests/data/ * fix(test): set minrarity to 0 for test_valid * refactor(test): object init in test_regex_identifier * refactor(test): parametrize more tests * test: improve `test_regex_successfully_parses` regex * style: format regex.json on main branch * style: format regex.json on `test/parametrize` branch * style: format regex.json on main branch * refactor: update refactor with upstream changes * refactor(test): test_regex_identifier description and exploit tests * style: format regex.json * refactor: finalise test_regex_identifier * refactor(test): move code into `test_regex_database.py` * feat: remove temporary script accidentally commited * ci(coverage): set patch coverage to 80%
- Loading branch information