diff --git a/tests/modules/test_context_mngr.py b/tests/modules/test_context_mngr.py index 946feea..bad49d7 100644 --- a/tests/modules/test_context_mngr.py +++ b/tests/modules/test_context_mngr.py @@ -640,6 +640,12 @@ def test_context_call(init_list, expected, file_line): ctx() +def test_double_call(): + ctx = context_mngr.ContextManager([sy.TextToken('test')]) + c = ctx() + assert c == ctx() + + def test_content_call_raises(): ctx = context_mngr.ContextManager([sy.StructuralElementEndToken(["1"])]) with pytest.raises(error_mngr.MismatchedContainerError): diff --git a/tests/modules/test_context_mngr_export.py b/tests/modules/test_context_mngr_export.py index 7c3238c..fa25bff 100644 --- a/tests/modules/test_context_mngr_export.py +++ b/tests/modules/test_context_mngr_export.py @@ -83,8 +83,14 @@ _list_classes_expected_value = [ sy.TextToken(['test7']), ]), ]), + sy.Linebreak(["\n"]), + sy.EtUlistToken([ + context_mngr.TextContainer([ + sy.TextToken(['test8']), + ]), + ]), ]), - "", + "", __GLk(1), ], [