Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 995091d

Browse files
authored
Merge pull request #335 from maarten-boot/master
update make test
2 parents e62cd3e + 9457074 commit 995091d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ reformat:
66
./reformat-code.sh
77

88
test:
9-
./test2.py -d google.com
9+
./test2.py -t 2>2 | tee 1
1010

1111
build:
1212
python -m build

testwhl.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import whois
22

3-
domain = "google.com"
4-
d = whois.query(domain, verbose=True)
5-
print(d.__dict__)
3+
for tld in whois.validTlds():
4+
hint = whois.getTestHint(tld)
5+
if hint:
6+
print(f"# == {hint}")
7+
d = whois.query(hint, verbose=True)
8+
for k,v in d.__dict__.items():
9+
print(f"\t{k}\t{v}")
10+
print("")

whois/tldDb/tld_regexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def xStr(what: str, times: int = 1, firstMandatory: bool = True) -> str:
736736
"creation_date": R(r"\ncreated:\s*(.+)\n"),
737737
"updated_date": R(r"\nlast modified:\s*(.+)\n"),
738738
# If no "option expiration date:" is present, use "renewal date:", but only
739-
# if it's not not followed by "option expiration date:".
739+
# if it's not not followed by "option expiration date:". google.pl is the test case here
740740
"expiration_date": R(r"(?:\noption expiration date:|renewal date:(?!(?:.|\n)*\noption expiration date:))\s*(.+)\n"),
741741
"name_servers": R(r"nameservers:%s" % xStr(r"(?:\s+(\S+)[^\n]*\n)?", 4)),
742742
"status": R(r"\nStatus:\n\s*(.+)"),

0 commit comments

Comments
 (0)