Changed to a more generic URL for testing

This commit is contained in:
Federico Hernandez 2018-02-18 00:30:13 +01:00 committed by Paul Beckingham
parent b97e1400e6
commit 11a281b862
2 changed files with 4 additions and 4 deletions

View file

@ -347,8 +347,8 @@ int main (int, char**)
{ "rc.foo", { { "rc.foo", Lexer::Type::dom }, NO, NO, NO, NO }, },
// URL
{ "http://tasktools.org", { { "http://tasktools.org", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "https://bug.tasktools.org", { { "https://bug.tasktools.org", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "http://example.com", { { "http://example.com", Lexer::Type::url }, NO, NO, NO, NO }, },
{ "https://foo.example.com", { { "https://foo.example.com", Lexer::Type::url }, NO, NO, NO, NO }, },
// String
{ "'one two'", { { "'one two'", Lexer::Type::string }, NO, NO, NO, NO }, },

View file

@ -67,10 +67,10 @@ class TestBug1575(TestCase):
tw-1575: `task log` mangles URLs when quoted
"""
self.t("log testing123 https://bug.tasktools.org")
self.t("log testing123 https://foo.example.com")
code, out, err = self.t("completed")
self.assertIn("testing123 https://bug.tasktools.org", out)
self.assertIn("testing123 https://foo.example.com", out)
if __name__ == "__main__":