nteract / testbook

🧪 📗 Unit test your Jupyter Notebooks the right way
https://testbook.readthedocs.io
BSD 3-Clause "New" or "Revised" License
416 stars 37 forks source link

testbook.ref cannot recognize complex variable #147

Open HypocriticalLemur opened 2 years ago

HypocriticalLemur commented 2 years ago

It appears, that testbook passes string instead of complex variable when testing a function that takes a complex number as an argument. I attached three files. Complex.ipynb contains function 'func_complex' that takes one complex argument. complex_testbook.ipynb is a test file. It contains one of your simple references. It tries to call func_complex. Please add complex type to the testbook (see the patch attached)

testbook_complex.zip