Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

testing sage code

I am having difficulty creating a convenient environment for testing. I typically use pytest when programming in python. One of the nice features of pytest is that on an assertion error

assert a == b

it will tell you what the values of a and b were. I can't seem to get pytest to work with sage. Is it possible to make pytest work with sage? If not, are there other recommended testing/debugging tools to use while writing sage code?

testing sage code

I am having difficulty creating a convenient environment for testing. I typically use pytest when programming in python. One of the nice features of pytest is that on an assertion error

assert a == b

it will tell you what the values of a and b were. I can't seem to get pytest to work with sage. Is it possible to make pytest work with sage? If not, are there other recommended testing/debugging tools to use while writing sage code?code? (In particular, I want to write unit tests for my code.)