v0.2.0
- Added
MockBackend.rows("col1", "col2")[(...), (...)]helper (#49). In this release, we have added a new helper methodMockBackend.rows("col1", "col2")[(...), (...)]to simplify testing withMockBackend. This method allows for the creation of rows using a more concise syntax, taking in the column names and a list of values to be used for each column, and returning a list ofRowobjects with the specified columns and values. Additionally, a__eq__method has been introduced to check if two rows are equal by converting the rows to dictionaries using the existingas_dictmethod and comparing them. The__contains__method has also been modified to improve the behavior of theinkeyword when used with rows, ensuring columns can be checked for membership in the row in a more intuitive and predictable manner. These changes make it easier to test and work withMockBackend, improving overall quality and maintainability of the project.
Contributors: @nfx