[pytest-dev] Autocompletion on fixture objects as test function input arguments - PyCharm
Michelle Chartier
Michelle.Chartier at gmx.com
Sat Dec 28 00:44:12 CET 2013
Hey all,
I recently got the community edition PyCharm IDE and so far like a lot of things about it (especially the ability to run pytest tests from within it). HOWEVER, I am having a problem with auto-completion on fixture functions (I realize this may not be the place to ask this question but I was hoping someone had some info that could help me or point me somewhere :) )
So, the problem: in my test function I am using a fixture object as an input argument and want to be able to see all available functions with autocompletion. To see autocompletion in Aptana, I imported the necessary fixture to the test module where my test function resides (the fixture is imported to a conftest in a package I have defined)
----------------------------------
Example:
#this test module resides in mypackag.mysubpackage.mysubsubpackage
from mypackage.mysubpackage.conftest import myobj
def test_mytest(myobj):
myobj. (<- this is where the autocompletion should show up?)
----------------------------------
In Aptana myobj shows all the available functions with autocompletion as expected but in PyCharm (with the exact same code/folders/folder structure) it says "No suggestions."
Anyone have a similar problem or know of a solution? (I would prefer to stick with PyCharm... :) )
Thanks!
Michelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20131227/b332d13f/attachment.html>
More information about the Pytest-dev
mailing list