Skip to content

Commit ba1eeb7

Browse files
committed
Python: Fix template tests to match updated apply_substitutions signature
Remove stale `cursor=None` kwarg from test calls after the parameter was removed from TemplateEngine.apply_substitutions in 7ca8044.
1 parent 6c47247 commit ba1eeb7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rewrite-python/rewrite/tests/python/template/test_template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_replace_placeholder_in_method_args(self):
9393
assert isinstance(tree, j.MethodInvocation)
9494

9595
result = TemplateEngine.apply_substitutions(
96-
tree, {'expr': self._ident("hello")}, cursor=None,
96+
tree, {'expr': self._ident("hello")},
9797
)
9898

9999
assert isinstance(result, j.MethodInvocation)
@@ -111,7 +111,7 @@ def test_replace_placeholder_in_method_select(self):
111111
assert isinstance(tree, j.MethodInvocation)
112112

113113
result = TemplateEngine.apply_substitutions(
114-
tree, {'obj': self._ident("myobj")}, cursor=None,
114+
tree, {'obj': self._ident("myobj")},
115115
)
116116

117117
assert isinstance(result, j.MethodInvocation)
@@ -128,7 +128,7 @@ def test_replace_multiple_placeholders(self):
128128
assert isinstance(tree, j.Binary)
129129

130130
result = TemplateEngine.apply_substitutions(
131-
tree, {'a': self._ident("x"), 'b': self._ident("y")}, cursor=None,
131+
tree, {'a': self._ident("x"), 'b': self._ident("y")},
132132
)
133133

134134
assert isinstance(result, j.Binary)

0 commit comments

Comments
 (0)