Skip to content

Commit b34aca4

Browse files
committed
✅ Fix pytest
1 parent c8fb807 commit b34aca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/make_language_server/finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def capture2uni(
5050
:type uri: str
5151
:rtype: UNI | None
5252
"""
53-
uni = UNI(uri, nodes[0])
53+
uni = UNI(nodes[0], uri)
5454
return (
5555
uni if label == "path" and not os.path.isfile(uni.path) else None
5656
)

tests/test_finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def test_DefinitionFinder() -> None:
2626
.children[0]
2727
.children[2]
2828
)
29-
result = finder(UNI(file, tree.root_node.children[12].children[0]))
29+
result = finder(UNI(tree.root_node.children[12].children[0], file))
3030
assert result is True

0 commit comments

Comments
 (0)