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
I'd like to make the output of pytest be more descriptive. How would I show the docstring for each test rather than the function call?
@pytest.mark.usefixtures( 'dynamo_client', 'table_init' )deftest_addVisitor( table_name, visitor ):
'''Test to see if the visitor can be added to the table.'''client=DynamoClient( table_name )
result=client.addVisitor( visitor )
assert'visitor'inresult.keys()
assertresult['visitor'] ==visitor
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to make the output of pytest be more descriptive. How would I show the docstring for each test rather than the function call?
Beta Was this translation helpful? Give feedback.
All reactions