Updated TODOs
This commit is contained in:
parent
e5b8989756
commit
b30e209f15
|
|
@ -11,8 +11,6 @@
|
||||||
# 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
|
||||||
|
|
@ -257,7 +255,7 @@ class TableCellContainer(BaseContainer):
|
||||||
|
|
||||||
|
|
||||||
class LinebreakContainer(BaseContainer):
|
class LinebreakContainer(BaseContainer):
|
||||||
def export(self, _): # TODO: Observe behaviour when we'll be done, might cause unintended side-effects
|
def export(self, _): # MONITOR: Observe behaviour when we'll be done, might cause unintended side-effects
|
||||||
return "<br/>\n"
|
return "<br/>\n"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -402,7 +400,7 @@ class ContextManager:
|
||||||
else: # starting token by default (can cause unintended behaviours on bad implementations)
|
else: # starting token by default (can cause unintended behaviours on bad implementations)
|
||||||
self._add_matched(token.label, index)
|
self._add_matched(token.label, index)
|
||||||
except MismatchedContainerError as e:
|
except MismatchedContainerError as e:
|
||||||
error_mngr.log_exception(e, level="CRITICAL") # TODO: Be more specific.
|
error_mngr.log_exception(e, level="CRITICAL") # FUTURE: Be more specific.
|
||||||
index += 1
|
index += 1
|
||||||
|
|
||||||
final_pile = []
|
final_pile = []
|
||||||
|
|
|
||||||
|
|
@ -166,8 +166,7 @@ class TextToken(EmptySemanticType):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
# TODO: check tokens doc
|
# FUTURE: all one-line elements should to inherit FinalSemanticType
|
||||||
# TODO: all one-line elements need to inherit FinalSemanticType
|
|
||||||
class EnhancedToken(ExplicitSemanticType):
|
class EnhancedToken(ExplicitSemanticType):
|
||||||
"""Mother of all EtTokens"""
|
"""Mother of all EtTokens"""
|
||||||
label = "text:enhanced"
|
label = "text:enhanced"
|
||||||
|
|
|
||||||
|
|
@ -490,7 +490,7 @@ def test_context_manager(base_cm):
|
||||||
assert e == v
|
assert e == v
|
||||||
|
|
||||||
|
|
||||||
def test_encapsulate(base_cm): # TODO : be more thourough
|
def test_encapsulate(base_cm): # Robustness is tested in test_container_export_value
|
||||||
base_cm.encapsulate(1, 2)
|
base_cm.encapsulate(1, 2)
|
||||||
ctn = context_mngr.TextContainer()
|
ctn = context_mngr.TextContainer()
|
||||||
ctn.add(_base_list[1])
|
ctn.add(_base_list[1])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue