psads / pythonds3

Data Structures package for Problem Solving with Algorithms and Data Structures using Python
GNU General Public License v3.0
35 stars 16 forks source link

_init files converted to pytest format #1

Closed karinaehoff closed 5 years ago

karinaehoff commented 5 years ago

I structured the init tests with parametrized fixtures and functions so that they run multiple times. Okken's book says it's a powerful and effective yet concise structure because it's more clear as to where an error or failure happens when they do occur. Since there's only the one function, I removed the class as it seemed unnecessary.