Updated TODOs

This commit is contained in:
Maximilien Rigaut 2022-05-31 05:29:01 +02:00
parent e5b8989756
commit b30e209f15
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
3 changed files with 4 additions and 7 deletions

View File

@ -11,8 +11,6 @@
# container = BaseContainer()
# container[number] -> The number element in the content
# "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.error_mngr import MismatchedContainerError, log_exception, log_message # noqa
@ -257,7 +255,7 @@ class TableCellContainer(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"
@ -402,7 +400,7 @@ class ContextManager:
else: # starting token by default (can cause unintended behaviours on bad implementations)
self._add_matched(token.label, index)
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
final_pile = []

View File

@ -166,8 +166,7 @@ class TextToken(EmptySemanticType):
return self
# TODO: check tokens doc
# TODO: all one-line elements need to inherit FinalSemanticType
# FUTURE: all one-line elements should to inherit FinalSemanticType
class EnhancedToken(ExplicitSemanticType):
"""Mother of all EtTokens"""
label = "text:enhanced"

View File

@ -490,7 +490,7 @@ def test_context_manager(base_cm):
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)
ctn = context_mngr.TextContainer()
ctn.add(_base_list[1])