xchem/fragalysis-api

We will need to adapt the tests in the future to check the content of the output. Another suggestion: dump the contents of all of the files you've added to a json file/object. If an object, you can use it in the test itself and write it to a temp file or using ``stringIO`` (better). Some examples here: https://stackoverflow.com/questions/3942820/how-to-do-unit-testing-of-functions-writing-files-using-python-unittest

TJGorrie opened this issue · 0 comments

We will need to adapt the tests in the future to check the content of the output. Another suggestion: dump the contents of all of the files you've added to a json file/object. If an object, you can use it in the test itself and write it to a temp file or using stringIO (better). Some examples here: https://stackoverflow.com/questions/3942820/how-to-do-unit-testing-of-functions-writing-files-using-python-unittest

Originally posted by @reskyner in #54 (comment)