Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARPY-2319 Add unit test case on S5886 when annotated return type is imported and has fields members only #2146

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

maksim-grebeniuk-sonarsource
Copy link
Contributor

@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource commented Nov 11, 2024

Copy link

Copy link
Contributor

@thomas-serre-sonarsource thomas-serre-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I left a comment about formatting that you can safely ignore if you wish.

Comment on lines +38 to +44
@Test
void importedTypesTest() {
PythonCheckVerifier.verify(List.of(
"src/test/resources/checks/functionReturnTypeImported.py",
"src/test/resources/checks/functionReturnTypeImporting.py"
), new FunctionReturnTypeCheck());
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit formatting

Suggested change
@Test
void importedTypesTest() {
PythonCheckVerifier.verify(List.of(
"src/test/resources/checks/functionReturnTypeImported.py",
"src/test/resources/checks/functionReturnTypeImporting.py"
), new FunctionReturnTypeCheck());
}
@Test
void importedTypesTest() {
PythonCheckVerifier.verify(
List.of("src/test/resources/checks/functionReturnTypeImported.py", "src/test/resources/checks/functionReturnTypeImporting.py"),
new FunctionReturnTypeCheck()
);
}

@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource merged commit 7a6c137 into master Nov 12, 2024
12 checks passed
@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource deleted the SONARPY-2319 branch November 12, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants