This commit is contained in:
Maximilien Rigaut 2022-05-28 03:17:28 +02:00
parent 528001db2c
commit 03c16e5bc7
5 changed files with 3 additions and 9 deletions

View File

@ -13,9 +13,8 @@
# "class_insert" >> container[number] -> Get an element from one of the mapped methods
import rich
from bootstraparse.modules import syntax
from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message
from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message # noqa
class BaseContainer:

View File

@ -3,8 +3,6 @@
# TODO: decide the parser scope
from io import StringIO
import rich
import bootstraparse.modules.syntax as syntax

View File

@ -6,8 +6,6 @@ import os
from itertools import zip_longest
from collections import namedtuple
import rich
from bootstraparse.modules.error_mngr import MismatchedContainerError
import pyparsing as pp

View File

@ -55,6 +55,6 @@ expected_list = [
def test_parse_line():
list_parsed=parser.parse_line(complete_list)
list_parsed = parser.parse_line(complete_list)
for element, expected in zip_longest(list_parsed, expected_list):
assert element.__class__ == expected
assert element.__class__ == expected

View File

@ -416,4 +416,3 @@ def test_make_replacement_errors():
assert pp.make_replacements("This is a test {}", "images") == "This is a test images"
assert pp.make_replacements("This is a test {} {} {image} {b}", 1, 2, image="images", b="b") == "This is a test 1 2 images b"
assert pp.make_replacements("This is a test {} {} {image} {b}", karm=3) == "This is a test {} {} {image} {b}"