lint
This commit is contained in:
parent
0f37558a60
commit
a4ad06bd89
2 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from typing import Optional, Dict
|
||||
from typing import Dict
|
||||
from typing import Optional
|
||||
|
||||
from ytdl_sub.script.types.array import Array
|
||||
from ytdl_sub.script.types.map import Map
|
||||
|
|
|
|||
|
|
@ -140,11 +140,13 @@ class TestMapFunctions:
|
|||
single_variable_output("{%map(1)}")
|
||||
|
||||
def test_map_extend(self):
|
||||
output = single_variable_output("""{
|
||||
output = single_variable_output(
|
||||
"""{
|
||||
%map_extend(
|
||||
{'key': 'value', 1: 3},
|
||||
{'key': 'override'}
|
||||
{'new': [1, 2]}
|
||||
)
|
||||
}""")
|
||||
assert output == {'key': 'override', 'new': [1, 2], 1: 3}
|
||||
}"""
|
||||
)
|
||||
assert output == {"key": "override", "new": [1, 2], 1: 3}
|
||||
|
|
|
|||
Loading…
Reference in a new issue