[katello-devel] New Testing Howto Wikipage
Tom McKay
thomasmckay at redhat.com
Fri Nov 18 15:49:48 UTC 2011
I am unable to run the nosetests successfully. For example,
% nosetests -s user_report_test.py
EEE
======================================================================
ERROR: test_it_calls_report_api_with_default_format (user_report_test.UserReportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tomckay/code/katello/cli/test/user_report_test.py", line 23, in test_it_calls_report_api_with_default_format
self.action.run()
File "/home/tomckay/code/katello/cli/src/katello/client/core/user.py", line 196, in run
print report[0]
TypeError: 'NoneType' object is unsubscriptable
======================================================================
ERROR: test_it_saves_pdf_report (user_report_test.UserReportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tomckay/code/katello/cli/test/user_report_test.py", line 33, in test_it_saves_pdf_report
self.action.run()
File "/home/tomckay/code/katello/cli/src/katello/client/core/user.py", line 196, in run
print report[0]
TypeError: 'NoneType' object is unsubscriptable
======================================================================
ERROR: test_it_uses_format_parameter (user_report_test.UserReportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tomckay/code/katello/cli/test/user_report_test.py", line 28, in test_it_uses_format_parameter
self.action.run()
File "/home/tomckay/code/katello/cli/src/katello/client/core/user.py", line 196, in run
print report[0]
TypeError: 'NoneType' object is unsubscriptable
----------------------------------------------------------------------
Ran 3 tests in 0.014s
FAILED (errors=3)
Running 'katello shell' I am able to run 'user report' w/o error. Any pointers would be appreciated.
----- Original Message -----
> From: "Tom McKay" <thomasmckay at redhat.com>
> To: "Tomas Strachota" <tstrachota at redhat.com>
> Cc: katello-devel at redhat.com
> Sent: Thursday, November 17, 2011 5:01:29 PM
> Subject: Re: [katello-devel] New Testing Howto Wikipage
>
> Running 'nosetests -s' on katello/master results in:
>
> FAILED (errors=93, failures=9)
>
> What is required for the tests to pass?
>
>
>
> ----- Original Message -----
> > From: "Tomas Strachota" <tstrachota at redhat.com>
> > To: katello-devel at redhat.com
> > Sent: Wednesday, November 9, 2011 7:25:55 AM
> > Subject: [katello-devel] New Testing Howto Wikipage
> >
> > Hi,
> >
> > based on lzap's testing overview page I created a new wikipage with
> > brief howto for running available Katello tests [1].
> >
> > Apart from unit tests it's a good idea to run also our simple
> > system
> > tests before merging to master.
> >
> > Tomas
> >
> > [1] https://fedorahosted.org/katello/wiki/TestingHowto
> >
> > _______________________________________________
> > katello-devel mailing list
> > katello-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/katello-devel
> >
>
More information about the katello-devel
mailing list