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
In other BDD frameworks (e.g., mocha), one is able wrap the declaration of individual tests inside a loop so that each pass through the loop adds another set of tests. One example I've used is to walk through a whole set of classes ensuring they each obey some invariant of their common parent class. Another example is a library I've written which can have multiple implementations, but which should offer the same interface no matter what implementation it's using.
for Subclass in [SubclassAlpha, SubclassBravo, SubclassCharlie]:
with description(f"using {subclass.__name__}:"):
# add tests which create an instance of Subclass and test it
The text was updated successfully, but these errors were encountered:
In other BDD frameworks (e.g., mocha), one is able wrap the declaration of individual tests inside a loop so that each pass through the loop adds another set of tests. One example I've used is to walk through a whole set of classes ensuring they each obey some invariant of their common parent class. Another example is a library I've written which can have multiple implementations, but which should offer the same interface no matter what implementation it's using.
The text was updated successfully, but these errors were encountered: