First fix for optionnals
This commit is contained in:
parent
cbee016a6a
commit
664c911225
|
|
@ -10,7 +10,7 @@
|
||||||
from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr
|
from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr
|
||||||
from collections import namedtuple
|
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
|
Named tuple containing all necessary information to select the appropriate
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,14 @@ def test_get_templates(export_type, export_subtype, line):
|
||||||
"display_level": "1"
|
"display_level": "1"
|
||||||
}))
|
}))
|
||||||
assert isinstance(r, export.ExportResponse)
|
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():
|
def test_context_cov():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue