-
Notifications
You must be signed in to change notification settings - Fork 241
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
Fix #1011 by adding a heuristic to not detect tests as lambda handlers #1689
Conversation
...st/software/aws/toolkits/jetbrains/services/lambda/python/PythonLambdaHandlerResolverTest.kt
Outdated
Show resolved
Hide resolved
...st/software/aws/toolkits/jetbrains/services/lambda/python/PythonLambdaHandlerResolverTest.kt
Outdated
Show resolved
Hide resolved
…s-toolkit-jetbrains into werlla/pytestimprovements
...st/software/aws/toolkits/jetbrains/services/lambda/python/PythonLambdaHandlerResolverTest.kt
Outdated
Show resolved
Hide resolved
...st/software/aws/toolkits/jetbrains/services/lambda/python/PythonLambdaHandlerResolverTest.kt
Outdated
Show resolved
Hide resolved
The original issue mentions that trying to run a test results in our "create lambda" handler hijacking the test runner. Should we try to tackle that issue as well? |
The youtrack issue seems to indicate that it's a JB bug, but if we filter out the test it should no longer do that? |
private fun assertHandlerDetermineHandlers(handler: String, shouldBeFound: Boolean) { | ||
runInEdtAndWait { | ||
val elementSet = findHandler(handler) | ||
assertThat(elementSet).hasSize(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused a bit on why this will always be found, if shouldBeFound is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me change the name. It should be found as a valid candidate handler but then be filtered by determineHandler.
/runIntegrationTests |
Types of changes
Related Issue(s)
#1011
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.