Browse Source

Comment on a failed test because of a Stargazer bug

tags/release-1.6
Stephane Bortzmeyer 6 months ago
parent
commit
cbcb8bbc71
  1. 7
      tests/test_full.py

7
tests/test_full.py

@ -67,7 +67,12 @@ def test_iri():
assert me.network_success and me.status_code == "20"
me = Agunua.GeminiUri("gemini://café.mozz.us/files/𝒻𝒶𝓃𝒸𝓎.txt", insecure=True)
assert me.network_success and me.status_code == "20"
# For all tests with a wrong name or a literal IP address, it
# currently (2021-11-29) fails since Stargazer closes abruptly the TLS
# session instead of returning a Gemini error code (typically 53)
# <https://todo.sr.ht/~zethra/stargazer/25>. TODO
def test_wrong_name():
me = Agunua.GeminiUri("gemini://radia.bortzmeyer.org/")
assert not me.network_success

Loading…
Cancel
Save