mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Skip tests that accept errors in text2html/ansi parser.
This commit is contained in:
parent
56026253dc
commit
e9a48d57d6
1 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"""Tests for text2html """
|
||||
|
||||
import unittest
|
||||
from django.test import TestCase
|
||||
from evennia.utils import ansi, text2html
|
||||
import mock
|
||||
|
|
@ -20,6 +21,7 @@ class TestText2Html(TestCase):
|
|||
"<span class=\"bgcolor-001\"><span class=\"color-002\">red</span></span>foo",
|
||||
parser.re_color(ansi.ANSI_BACK_RED + ansi.ANSI_UNHILITE + ansi.ANSI_GREEN + "red" + ansi.ANSI_NORMAL + "foo"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_re_bold(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.re_bold("foo"))
|
||||
|
|
@ -29,6 +31,7 @@ class TestText2Html(TestCase):
|
|||
parser.re_bold(
|
||||
"a " + ansi.ANSI_HILITE + "red" + ansi.ANSI_UNHILITE + "foo"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_re_underline(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.re_underline("foo"))
|
||||
|
|
@ -39,6 +42,7 @@ class TestText2Html(TestCase):
|
|||
+ ansi.ANSI_NORMAL # TODO: why does it keep it?
|
||||
+ "foo"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_re_blinking(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.re_blinking("foo"))
|
||||
|
|
@ -49,6 +53,7 @@ class TestText2Html(TestCase):
|
|||
+ ansi.ANSI_NORMAL # TODO: why does it keep it?
|
||||
+ "foo"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_re_inversing(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.re_inversing("foo"))
|
||||
|
|
@ -59,6 +64,7 @@ class TestText2Html(TestCase):
|
|||
+ ansi.ANSI_NORMAL # TODO: why does it keep it?
|
||||
+ "foo"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_remove_bells(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.remove_bells("foo"))
|
||||
|
|
@ -82,6 +88,7 @@ class TestText2Html(TestCase):
|
|||
"a<br> redfoo<br>",
|
||||
parser.convert_linebreaks("a\n redfoo\n"))
|
||||
|
||||
@unittest.skip("parser issues")
|
||||
def test_convert_urls(self):
|
||||
parser = text2html.HTML_PARSER
|
||||
self.assertEqual("foo", parser.convert_urls("foo"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue