Unit test fails with InvocationError usign tox
Bug #1532735 reported by
naggappan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Graham Hayes |
Bug Description
# Installed devsatack with designate successfully (Master branch)
# cd /opt/stack/devstack
# Now triggered the unit test in following way ,
$ tox -e py27 -- designate/
And this give the following error,
http://
To post a comment you must log in.
➜ designate git:(master) tox -e py27 -- designate. tests.test_ central. test_service. CentralServiceT est.test_ count_zones ~~~~~~~ ~~~~~~
/home/ graham/ repos/github/ openstack/ designate/ .tox/py27/ local/lib/ python2. 7/site- packages/ sqlalchemy/ sql/default_ comparator. py:153: SAWarning: The IN-predicate on "recordsets.id" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.
'strategies for improved performance.' % expr)
<snip>
Captured stderr:
~~~
{1} designate. tests.test_ central. test_service. CentralServiceT est.test_ count_zones_ policy_ check [9.331709s] ... ok ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- ----------- tests.test_ central. test_service. CentralServiceT est.test_ count_zones 9.345 tests.test_ central. test_service. CentralServiceT est.test_ count_zones_ policy_ check 9.332
Slowest Tests
Test id Runtime (s)
---
designate.
designate.
======
Totals
======
Ran: 2 tests in 15.0000 sec.
- Passed: 2
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 18.6770 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:09.345302
- Worker 1 (1 tests) => 0:00:09.331709
I have not used the file based method of picking tests - I use the above syntax. The test was also renamed to test_count_zones after the big rename.