diff --git a/src/bootstraparse/modules/export.py b/src/bootstraparse/modules/export.py
index 2809d32..b4f303d 100644
--- a/src/bootstraparse/modules/export.py
+++ b/src/bootstraparse/modules/export.py
@@ -109,7 +109,7 @@ class ExportManager:
)
# future: allow for template selection
rich.inspect(export_request.optionals)
- optionals = format_optionals(export_request.optionals) # TODO : Extensive testing
+ optionals = format_optionals(export_request.optionals) # TODO : Extensive testing
return start, end, optionals
diff --git a/tests/modules/test_context_mngr.py b/tests/modules/test_context_mngr.py
index 056940f..cb51dea 100644
--- a/tests/modules/test_context_mngr.py
+++ b/tests/modules/test_context_mngr.py
@@ -1,5 +1,5 @@
import pytest
-import rich
+
from bootstraparse.modules import context_mngr, export
from bootstraparse.modules.syntax import SemanticType, TextToken, Linebreak, StructuralElementStartToken, StructuralElementEndToken, EtUlistToken, EtOlistToken # noqa
@@ -68,8 +68,8 @@ _list_classes_expected_value = [
context_mngr.EtUlistContainer([
EtUlistToken([
context_mngr.TextContainer([
- TextToken(['test7']),
- ]),
+ TextToken(['test7']),
+ ]),
]),
]),
"
",
@@ -80,8 +80,8 @@ _list_classes_expected_value = [
context_mngr.EtOlistContainer([
EtOlistToken([
context_mngr.TextContainer([
- TextToken(['test8']),
- ]),
+ TextToken(['test8']),
+ ]),
]),
]),
"- test8
",
@@ -134,23 +134,23 @@ _list_classes_expected_value = [
context_mngr.TableRowContainer([
context_mngr.TableCellContainer([
context_mngr.TextContainer([
- TextToken(['test13']),
- ]),
+ TextToken(['test13']),
+ ]),
]),
]),
]),
context_mngr.TableRowContainer([
context_mngr.TableCellContainer([
context_mngr.TextContainer([
- TextToken(['test14']),
- ]),
+ TextToken(['test14']),
+ ]),
]),
]),
context_mngr.TableRowContainer([
context_mngr.TableCellContainer([
context_mngr.TextContainer([
- TextToken(['test15']),
- ]),
+ TextToken(['test15']),
+ ]),
]),
]),
]),
@@ -447,4 +447,4 @@ def test_container_export_value(container, export_v, line):
def test_export_error():
em = export.ExportManager(None, None)
with pytest.raises(SystemExit):
- context_mngr.TextContainer([TextToken(['e']), None]).export(em)
\ No newline at end of file
+ context_mngr.TextContainer([TextToken(['e']), None]).export(em)
diff --git a/tests/modules/test_export.py b/tests/modules/test_export.py
index 5964b2d..0bfdf65 100644
--- a/tests/modules/test_export.py
+++ b/tests/modules/test_export.py
@@ -3,6 +3,7 @@ from itertools import zip_longest
import bootstraparse.modules.export as export
import pytest
+from bootstraparse.modules import context_mngr, syntax
from bootstraparse.modules.tools import __GLk
@@ -143,3 +144,19 @@ def test_get_templates(export_type, export_subtype, line):
}))
assert isinstance(r, export.ExportResponse)
+
+
+def test_context_cov():
+ em = export.ExportManager("test", "test")
+ lst = [context_mngr.TextContainer([syntax.TextToken("test")])]
+
+ # base = context_mngr.ContextManager(lst)
+ # base.pile = lst
+ # return base
+ convr = export.ContextConverter(lst, em)
+ convr.process_pile()
+ convr.__repr__()
+ convr.readlines()
+ convr.__str__()
+ convr.printall()
+ _ = convr == convr