This PR adds new unit tests for some functions that previously did not have test functions, and this PR also updates previous test functions to use parametrization. Most functions were able to be tested except for the functions that called other functions from within. For example, the function arrayToString() cannot be tested by pytest (Or I have yet to figure out how to test with pytest) due to the fact that it calls escapeMarkdown() when returning the string.
However, if we remove the escapeMarkdown() function from within arrayToString() , then all the test pass as shown below.
Due to this issue, I have only implemented parametrized unit testing with pytest for functions that do not call other functions. Currently all of these test functions pass testing.
This PR adds new unit tests for some functions that previously did not have test functions, and this PR also updates previous test functions to use parametrization. Most functions were able to be tested except for the functions that called other functions from within. For example, the function
arrayToString()
cannot be tested by pytest (Or I have yet to figure out how to test with pytest) due to the fact that it callsescapeMarkdown()
when returning the string.However, if we remove the
escapeMarkdown()
function from withinarrayToString()
, then all the test pass as shown below.Due to this issue, I have only implemented parametrized unit testing with pytest for functions that do not call other functions. Currently all of these test functions pass testing.