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
If I want to group my tests using regular pytest test classes, testbook is unable to execute and fails. It might be because the self argument of the test class method is erroneously filled in by the fixture.
This issue happens when using testbook with unittest module as well.
I can think of two passible aproaches to mitigate this issue (without breaking backward comapatiblity)
Add a named argument in testbook decorator which tells it to pass the notebook cleint as last argument instead of first (not a very clean approach i guess)
example:
If I want to group my tests using regular pytest test classes, testbook is unable to execute and fails. It might be because the
self
argument of the test class method is erroneously filled in by the fixture.Code cell to be tested (just for the record):
Test code that reproduces the error:
Error output when executing pytest + the file that contains the above code:
Without a test class, the code works perfectly fine when executing pytest + the file that contains the above code:
Output:
The text was updated successfully, but these errors were encountered: