Doctests are typically written within the docstring of a function or class. How do you mean using them with sphinx? And how do you mean keeping them separate? Separate from what?
You can define doctests (in docstrings) and then test them via Sphinx by running make doctest: http://sphinx-tutorial.readthedocs.io/step-3/#test-your-docs In my mind, code for some tests could become quite large, and would make the docstring big. Tests would also become scattered around your application. So I’m thinking I’d probably rather run tests completely separated from Sphinx. I’m sure doctests via Sphinx has its use cases, and I was interested in what you guys thought of this and if any of you were using it this way. // Fredrik -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWOoVnkzKfcLA9kwPiii-bTz4XEu1rxqeyCj%2BCwqa58Cog%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
