This commit is contained in:
Maximilien Rigaut 2022-05-30 23:22:21 +02:00
parent a74507de71
commit c943bb94a0
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
2 changed files with 2 additions and 14 deletions

View File

@ -11,7 +11,7 @@
# container = BaseContainer() # container = BaseContainer()
# container[number] -> The number element in the content # container[number] -> The number element in the content
# "class_insert" >> container[number] -> Get an element from one of the mapped methods # "class_insert" >> container[number] -> Get an element from one of the mapped methods
import rich # import rich
from bootstraparse.modules import syntax, error_mngr, export from bootstraparse.modules import syntax, error_mngr, export
from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message # noqa from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message # noqa

View File

@ -1,7 +1,7 @@
import pytest import pytest
from bootstraparse.modules import context_mngr from bootstraparse.modules import context_mngr
from bootstraparse.modules.syntax import SemanticType, TextToken, Linebreak, StructuralElementStartToken, StructuralElementEndToken, EtUlistToken, EtOlistToken from bootstraparse.modules.syntax import SemanticType, TextToken, Linebreak, StructuralElementStartToken, StructuralElementEndToken, EtUlistToken, EtOlistToken # noqa
from bootstraparse.modules.tools import __GLk from bootstraparse.modules.tools import __GLk
__XF = pytest.mark.xfail __XF = pytest.mark.xfail
@ -52,8 +52,6 @@ _token_list_with_expected_result = [
context_mngr.TextContainer([TextToken([1])]), context_mngr.TextContainer([TextToken([1])]),
StructuralElementEndToken(["div"]) StructuralElementEndToken(["div"])
]), ]),
None,
None,
], ],
__GLk(1), __GLk(1),
], ],
@ -85,11 +83,6 @@ _token_list_with_expected_result = [
EtUlistToken(["c"]), EtUlistToken(["c"]),
EtUlistToken(["d"]), EtUlistToken(["d"]),
]), ]),
None,
None,
None,
None,
None,
context_mngr.EtUlistContainer([ context_mngr.EtUlistContainer([
EtOlistToken(["aa"]), EtOlistToken(["aa"]),
EtOlistToken(["bb"]), EtOlistToken(["bb"]),
@ -98,11 +91,6 @@ _token_list_with_expected_result = [
EtOlistToken(["dd"]), EtOlistToken(["dd"]),
Linebreak([]), Linebreak([]),
]), ]),
None,
None,
None,
None,
None,
context_mngr.LinebreakContainer([Linebreak([])]), context_mngr.LinebreakContainer([Linebreak([])]),
context_mngr.TextContainer([TextToken([1])]), context_mngr.TextContainer([TextToken([1])]),
context_mngr.LinebreakContainer([Linebreak([])]), context_mngr.LinebreakContainer([Linebreak([])]),