First fix for optionnals

This commit is contained in:
Maximilien Rigaut 2022-05-31 07:05:51 +02:00
parent cbee016a6a
commit 664c911225
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
2 changed files with 9 additions and 2 deletions

View File

@ -10,7 +10,7 @@
from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr
from collections import namedtuple
from bootstraparse.modules.syntax import split_optionals, OptionalToken
from bootstraparse.modules.syntax import split_optionals, OptionalToken # noqa F401
"""
Named tuple containing all necessary information to select the appropriate

View File

@ -149,7 +149,14 @@ def test_get_templates(export_type, export_subtype, line):
"display_level": "1"
}))
assert isinstance(r, export.ExportResponse)
# TODO : Add optional
r2 = em(export.ExportRequest(export_type, export_subtype, _opts, {
"header_level": "2",
"url": "2",
"col_span": "2",
"row_span": "2",
"display_level": "2"
}))
assert isinstance(r2, export.ExportResponse)
def test_context_cov():