Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterallenwebb committed Dec 10, 2024
1 parent 8eeb25e commit 30c5b97
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/unit/test_jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
import unittest

from dbt_common.clients._jinja_blocks import BlockTag
from dbt_common.clients.jinja import extract_toplevel_blocks, get_template, render_template, MacroFuzzParser, MacroType
from dbt_common.clients.jinja import (
extract_toplevel_blocks,
get_template,
render_template,
MacroFuzzParser,
MacroType,
)
from dbt_common.exceptions import CompilationError


Expand Down Expand Up @@ -506,7 +512,7 @@ def test_if_endfor_newlines(self) -> None:
"""


def test_if_list_filter():
def test_if_list_filter() -> None:
jinja_string = """
{%- if my_var | is_list -%}
Found a list
Expand Down Expand Up @@ -557,4 +563,6 @@ def test_macro_parser_parses_complex_types() -> None:
assert arg_types[0] == MacroType("List", [MacroType("str")])
assert arg_types[1] == MacroType("Dict", [MacroType("int"), MacroType("str")])
assert arg_types[2] == MacroType("Optional", [MacroType("List", [MacroType("str")])])
assert arg_types[3] == MacroType("Dict", [MacroType("str"), MacroType("Dict", [MacroType("bool"), MacroType("Any")])])
assert arg_types[3] == MacroType(
"Dict", [MacroType("str"), MacroType("Dict", [MacroType("bool"), MacroType("Any")])]
)

0 comments on commit 30c5b97

Please sign in to comment.