api documentation¶
classes module¶
|
Asserts whether an object inherits from a particular class. |
|
Raises type error if class_to_check is not a class. |
|
Test that a particular object has a given method and the (method) attribute is callable. |
|
Check a particular object has given attributes. |
equality module¶
|
This function is used to call specific assert functions depending on the input types. |
|
Compares actual and expected objects and simply asserts equality (==). |
|
Function to test that both values are np.NaN. |
|
Compares two actual and expected list or tuple objects and asserts equality between the two. |
|
Compares two actual and expected dict objects and asserts equality. |
|
Compares actual and expected pandas.DataFrames and asserts equality. |
|
Compares actual and expected pandas.Series and asserts equality. |
|
Compares actual and expected pandas.Index objects and asserts equality. |
|
Compares actual and expected np.arrays and asserts equality. |
functions module¶
|
Assert a function has been called with given arguments. |
|
Assert a function has been called a given number of times. |
|
Test that a given function has expected arguments and default values. |
pandas module¶
|
Wrapper function to create copies of input pd.DataFrames pairs and adjust either the index of the dataframe, or split the dataframe into individual rows. |
|
Helper function to create copies of input pd.DataFrames pairs in a list of pytest.params where each copy has a different index (random, increasing and decreasing), the last item in the list is a pytest.param of the original inputs. |
|
Helper function to split input pd.DataFrames pairs into a list of pytest.params of individual row pairs and a final pytest.param of the original inputs. |