diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 16:00:39 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 16:00:39 +0900 |
commit | 86f7051feee1473a30df564bc0634f5bfa4bba4c (patch) | |
tree | 98e634e75c36866aa9172504b9249c027e9f12df | |
parent | 10cbbfad4b2796ed5afec1ea5f777149a2030f6a (diff) | |
download | scadere-86f7051feee1473a30df564bc0634f5bfa4bba4c.tar.gz |
Add another rare test case
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | tst/test_help.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md index 9d5d710..1967b9d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ on any Python package, it is safe to be tested in-tree: Issues should be reported to [chung@loa.loang.net][loang mailing list]. The mailing list also welcomes patches. Please maintain -the full branch [coverage] and keep the [hobgoblins][flake8] happy: +a full branch [coverage] and keep the [hobgoblins][flake8] happy: PYTHONPATH=src coverage run coverage report diff --git a/tst/test_help.py b/tst/test_help.py index 0889961..3e5ce87 100644 --- a/tst/test_help.py +++ b/tst/test_help.py @@ -57,6 +57,7 @@ def test_long_option(help_string, short, long, metavar): assert f'{short} {metavar}, {long}={metavar}' in help_string +@example('a.example:b', None) # string is unlikely to match .*:\D+ @example('a.example:98', None) # string is unlikely to match .*:\d+ @given(...) def test_netloc(string: str, default_port: int | None): |