Skip to content

Commit

Permalink
change tests: httpbun.org → .com (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Dec 8, 2023
1 parent 964be3c commit 4088710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/testlist.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://httpbun.org/html
https://httpbun.com/html
10 changes: 5 additions & 5 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_input():
load_html("<html><body>\x2f\x2e\x9f</body></html>".encode("latin-1"))
is not None
)
assert load_html("https://httpbun.org/html") is not None
assert load_html("https://httpbun.com/html") is not None
# encoding declaration
assert (
load_html(
Expand Down Expand Up @@ -1582,7 +1582,7 @@ def test_cli():
process_args(args)
assert err.type == SystemExit
# meaningful test
testargs = ["", "-u", "https://httpbun.org/html"]
testargs = ["", "-u", "https://httpbun.com/html"]
with patch.object(sys, "argv", testargs):
args = parse_args(testargs)
f = io.StringIO()
Expand All @@ -1595,7 +1595,7 @@ def test_cli():
f = io.StringIO()
with redirect_stdout(f):
process_args(args)
assert f.getvalue() == "https://httpbun.org/html\tNone\n"
assert f.getvalue() == "https://httpbun.com/html\tNone\n"


def test_download():
Expand All @@ -1607,11 +1607,11 @@ def test_download():
teststring = fetch_url(url)
assert teststring is None
assert examine(teststring) is None
url = "https://httpbun.org/links/2/2"
url = "https://httpbun.com/links/2/2"
teststring = fetch_url(url)
assert teststring is not None
assert examine(teststring) is None
url = "https://httpbun.org/html"
url = "https://httpbun.com/html"
teststring = fetch_url(url)
assert teststring is not None
assert examine(teststring, False) is None
Expand Down

0 comments on commit 4088710

Please sign in to comment.