python-tutorial icon indicating copy to clipboard operation
python-tutorial copied to clipboard

Fix exercises on objects

Open yakutovicha opened this issue 1 year ago • 1 comments

fixes #111

yakutovicha avatar May 05 '23 09:05 yakutovicha

Don't know (yet) if we want to fix this issue before the next tutorial, but here's something we can do without changing anything substantially: add a test on the type (e.g. isinstance) of the return value of the solution function instead of only its content.

At the moment, we are only testing the content with test_solution = [string for _, string in function_to_test(flavors)]

edoardob90 avatar Mar 20 '24 13:03 edoardob90