I also don't know what his code does precisely, but I wouldn't be so quick
to dismiss.

It's possible he has executable documentation; in which code snippets
within his documentation are executed at build time to produce actual
output, rather than hard-code it. That way he would also become notified
when his documentation says one thing, but his code does differently.

Overall, I don't see a problem with Sphinx having access to OpenMaya, or
any other Python library.

On 7 September 2016 at 11:31, Christopher Crouzet <
christopher.crou...@gmail.com> wrote:

> Yes, I did see this but I've got no idea what it refers to. I'd be curious
> to know what kind of “testing” code would have its place within a doc
> generation process?
>
>
> On 7 September 2016 at 17:25, Marcus Ottosson <konstrukt...@gmail.com>
> wrote:
>
>> > Marcus: I have no idea what this MetaData implementation refers to?
>>
>> Hi Christopher, Mark was referring to this by name in the original
>> question as one of the requirements for his document generation.
>>
>> For completeness, here it is again.
>>
>> > all our unitTests run fine and those all call the same Maya boot
>> sequence which in turn needs OpenMaya for all the MetaData testing.
>>
>> Best,
>> Marcus
>>
>>
>> On 7 September 2016 at 11:22, Christopher Crouzet <
>> christopher.crou...@gmail.com> wrote:
>>
>>> PS: the mock code isn't mine and I failed to credit the original author
>>> in my repository, so here it is for now: http://stackoverflow.com/a/235
>>> 73376/1640404. I'll add the link in a future commit.
>>>
>>>
>>> On 7 September 2016 at 17:13, Christopher Crouzet <
>>> christopher.crou...@gmail.com> wrote:
>>>
>>>> Marcus: I have no idea what this MetaData implementation refers to?
>>>>
>>>> Cesar: True but I personally like avoiding unnecessary external
>>>> dependencies for such simple needs (the module `mock` is not part of
>>>> `mayapy` which is Python 2). Otherwise it feels like coding in JavaScript
>>>> using one line NPM modules such as https://github.com/kevva/is-positive
>>>> :) To each its own.
>>>>
>>>>
>>>> On 7 September 2016 at 17:01, Cesar Saez <cesa...@gmail.com> wrote:
>>>>
>>>>> No need to reinvent the wheel, there's a std/production proved mock
>>>>> module! (it's part of python3 std Library iirc).
>>>>>
>>>>> pip install mock
>>>>>
>>>>> You basically replace Maya entries on sys.modules by a MagicMock
>>>>> instance (check the docs for more info, there are convenience functions to
>>>>> do it and everything... mocking dependencies is a very common practice and
>>>>> is well documented).
>>>>>
>>>>> Hope this helps,
>>>>> Cheers
>>>>>
>>>>> --
>>>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPamJi
>>>>> -ARG9Amp3twfCcPY8m-%3DBw-HQpfZuZ1TTtnLitJsV-6A%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPamJi-ARG9Amp3twfCcPY8m-%3DBw-HQpfZuZ1TTtnLitJsV-6A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Christopher Crouzet
>>>> *http://christophercrouzet.com* <http://christophercrouzet.com>
>>>>
>>>>
>>>
>>>
>>> --
>>> Christopher Crouzet
>>> *http://christophercrouzet.com* <http://christophercrouzet.com>
>>>
>>> --
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8
>>> RPbsCbky50TeGtCg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8RPbsCbky50TeGtCg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Marcus Ottosson*
>> konstrukt...@gmail.com
>>
>> --
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSy
>> eF0dxReJ9tj6GqYw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSyeF0dxReJ9tj6GqYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Christopher Crouzet
> *http://christophercrouzet.com* <http://christophercrouzet.com>
>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%
> 2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
konstrukt...@gmail.com

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOASfaWC1oBCFFiGS_3S4oZ3rvBiRbaTznkbpAzjKA%3DLtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to