Skip to content

Commit

Permalink
refactor tests/test_regex_identifier.py (#202)
Browse files Browse the repository at this point in the history
* 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
jyooru committed Oct 16, 2021
1 parent 2589780 commit dd077aa
Show file tree
Hide file tree
Showing 5 changed files with 918 additions and 1,180 deletions.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ coverage:
project:
default:
target: 90%
patch:
default:
target: 80%
Loading

0 comments on commit dd077aa

Please sign in to comment.