[TIP] Nose_fixes
Chris Withers
chris at simplistix.co.uk
Mon Sep 21 01:39:36 PDT 2015
Hi Vijayram,
Please ask questions on the list, that way others can chime in...
On 16/09/2015 20:56, Vijayram Gopu wrote:
> fromtest_login_rest_api importRestLoginTestSuite
>
> importtest_login_rest_api
>
> fromnose.loader importTestLoader
>
> fromnose importrun
>
> fromnose.suite importLazySuite
>
> deftest_suite():
>
> print"Into suite function...\n"
>
> suite = LazySuite()
>
>
> suite.addTest(TestLoader().loadTestsFromName('RestLoginTestSuite.test_login_user_empty_password_empty', test_login_rest_api))
This looks like some pretty odd code. What are you hoping to achieve
here that you couldn't by just using nose normally?
> This is the nose command I used for execution: /opt/tools/bin/nosetests
> faas_suite.py
>
> After the execution, I am expecting only 1 TestCase to execute, but this
> executes 12 testcases,
Can you show the full output of nosetests -v?
cheers,
Chris
More information about the testing-in-python
mailing list