Added test for toot.utils.urlencode_url(...)
This commit is contained in:
parent
584f598b5a
commit
732b9feed5
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ import pytest
|
|||
|
||||
from toot.console import duration
|
||||
from toot.wcstring import wc_wrap, trunc, pad, fit_text
|
||||
from toot.utils import urlencode_url
|
||||
|
||||
|
||||
def test_pad():
|
||||
|
@ -201,3 +202,8 @@ def test_duration():
|
|||
|
||||
with pytest.raises(ArgumentTypeError):
|
||||
duration("banana")
|
||||
|
||||
|
||||
def test_urlencode_url():
|
||||
assert urlencode_url("https://www.example.com") == "https://www.example.com"
|
||||
assert urlencode_url("https://www.example.com/url%20with%20spaces") == "https://www.example.com/url%20with%20spaces"
|
||||
|
|
Loading…
Reference in a new issue