Skip to content

Commit

Permalink
Update tests to reflect new hover docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pappasam committed Nov 19, 2021
1 parent b032747 commit 8ee2138
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/lsp_tests/test_completion.py
Expand Up @@ -62,7 +62,7 @@ def test_lsp_completion() -> None:
"detail": "def my_function()",
"documentation": {
"kind": "markdown",
"value": "```text\nmy_function()\n\nSimple test function.\n```",
"value": "```text\nSimple test function.\n```",
},
"sortText": "z",
"filterText": "my_function",
Expand Down Expand Up @@ -105,7 +105,7 @@ def test_eager_lsp_completion() -> None:
"detail": "def my_function()",
"documentation": {
"kind": "markdown",
"value": "```text\nmy_function()\n\nSimple test function.\n```",
"value": "```text\nSimple test function.\n```",
},
"sortText": "z",
"filterText": "my_function",
Expand Down Expand Up @@ -151,7 +151,7 @@ def test_lsp_completion_class_method() -> None:
"detail": "def some_method(x)",
"documentation": {
"kind": "markdown",
"value": "```text\nsome_method(x)\n\nGreat method.\n```",
"value": "```text\nGreat method.\n```",
},
"sortText": "z",
"filterText": "some_method",
Expand Down
2 changes: 1 addition & 1 deletion tests/lsp_tests/test_hover.py
Expand Up @@ -29,7 +29,7 @@ def test_hover_on_module():
expected = {
"contents": {
"kind": "markdown",
"value": "```python\nmodule somemodule\n```\n---\n```text\nModule doc string for testing.\n```\n**Full name:** `somemodule`",
"value": "```python\nsomemodule ## module\n```\n---\n```text\nModule doc string for testing.\n```",
},
"range": {
"start": {"line": 2, "character": 7},
Expand Down

0 comments on commit 8ee2138

Please sign in to comment.