-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REFACTOR, TESTS] Change mechanism for data-driven-tests
Change to a much nicer decorater based data-driven-testing mechanism. Now, instead of 2 functions (one for test-logic and one containing/yielding tests), we will use a single decorated function and an iterable. The iterable is passed to the decorator along with other description-related arguments. The decorator does some magic (similar to the one we did earlier) and returns a generator function that yields out tests. This approach is cleaner IMO as it makes the "data" of the test separate from the logic while using only one function.
- Loading branch information
Showing
2 changed files
with
114 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters