Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 10, 2023
1 parent fe0ae53 commit 1549c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugins/test_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_references(tmp_workspace): # pylint: disable=redefined-outer-name
DOC1_URI = uris.from_fs_path(os.path.join(tmp_workspace.root_path, DOC1_NAME))
doc1 = Document(DOC1_URI, tmp_workspace)

refs = pylsp_references(doc1, position)
refs = pylsp_references(doc1, position, exclude_declaration=False)

# Definition, the import and the instantiation
assert len(refs) == 3
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_references_builtin(tmp_workspace): # pylint: disable=redefined-outer-n
doc2_uri = uris.from_fs_path(os.path.join(str(tmp_workspace.root_path), DOC2_NAME))
doc2 = Document(doc2_uri, tmp_workspace)

refs = pylsp_references(doc2, position)
refs = pylsp_references(doc2, position, exclude_declaration=False)
assert len(refs) >= 1

expected = {
Expand Down

0 comments on commit 1549c47

Please sign in to comment.