You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode seems to have an issue with describe blocks, it doesn't know what to do with them and so won't add them to the list of tests (it uses pytest's --collect-only output to discover them).
However it understands test case classes, so there might be a way to get them to work without relying on support from any IDE by wrapping any describe function as a test class ?
So that this:
def describe_me():
def test_it_works():
pass
Would look the same as :
class describe_me(unittest.TestCase):
def test_it_works(self):
pass
The text was updated successfully, but these errors were encountered:
VSCode seems to have an issue with describe blocks, it doesn't know what to do with them and so won't add them to the list of tests (it uses pytest's --collect-only output to discover them).
However it understands test case classes, so there might be a way to get them to work without relying on support from any IDE by wrapping any describe function as a test class ?
So that this:
Would look the same as :
The text was updated successfully, but these errors were encountered: