Skip to content

Commit 8cd1ec2

Browse files
test: fix code action kind typo to source.fixAll.pytest-ls
1 parent c387c7e commit 8cd1ec2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_lsp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7424,7 +7424,7 @@ def test_uses_request(request):
74247424

74257425
#[tokio::test]
74267426
async fn test_request_code_action_fix_all_annotates_request_param() {
7427-
// source.fixAll.pytest-lsp must include `request: FixtureRequest` when
7427+
// source.fixAll.pytest-ls must include `request: FixtureRequest` when
74287428
// the `request` fixture definition is available with a return type.
74297429
use pytest_language_server::FixtureDatabase;
74307430
use std::path::PathBuf;
@@ -7483,7 +7483,7 @@ def test_parametrized(request):
74837483
},
74847484
context: CodeActionContext {
74857485
diagnostics: vec![],
7486-
only: Some(vec![CodeActionKind::from("source.fixAll.pytest-lsp")]),
7486+
only: Some(vec![CodeActionKind::from("source.fixAll.pytest-ls")]),
74877487
trigger_kind: None,
74887488
},
74897489
work_done_progress_params: WorkDoneProgressParams {
@@ -7501,13 +7501,13 @@ def test_parametrized(request):
75017501
.iter()
75027502
.find_map(|a| match a {
75037503
CodeActionOrCommand::CodeAction(ca)
7504-
if ca.kind == Some(CodeActionKind::from("source.fixAll.pytest-lsp")) =>
7504+
if ca.kind == Some(CodeActionKind::from("source.fixAll.pytest-ls")) =>
75057505
{
75067506
Some(ca)
75077507
}
75087508
_ => None,
75097509
})
7510-
.expect("Should have a source.fixAll.pytest-lsp action");
7510+
.expect("Should have a source.fixAll.pytest-ls action");
75117511

75127512
// Exactly 1 fixture (request) should be annotated.
75137513
assert!(

0 commit comments

Comments
 (0)