okfn/dpm — Issue #37: Fix the tests
Author: dgraziotin
Created: 2011-11-18 12:38:39+00:00
State: open
Labels: size.small

There are many tests that either fail or give errors.

dpm.tests.index.test_base.TestFileIndex.test_get ... ERROR
dpm.tests.index.test_base.TestFileIndex.test_search ... ERROR
dpm.tests.index.test_base.TestFileIndex.test_together_has_register_update_list ... ERROR
dpm.tests.index.test_base.TestSimpleIndex.test_get ... ok
dpm.tests.index.test_base.TestSimpleIndex.test_search ... ok
dpm.tests.index.test_base.TestSimpleIndex.test_together_has_register_update_list ... ok
dpm.tests.index.test_ckan.TestCkanIndex.test_get ... ok
dpm.tests.index.test_ckan.TestCkanIndex.test_search ... ERROR
Traceback (most recent call last):
File "/usr/bin/nosetests", line 9, in
load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests')()
File "/usr/lib/pymodules/python2.7/nose/core.py", line 118, in __init__
**extra_args)
File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
File "/usr/lib/pymodules/python2.7/nose/core.py", line 197, in runTests
result = self.testRunner.run(self.test)
File "/usr/lib/pymodules/python2.7/nose/core.py", line 61, in run
test(result)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 223, in run
test(orig)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 223, in run
test(orig)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 223, in run
test(orig)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 176, in __call__
return self.run(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/suite.py", line 213, in run
result.addError(self, self._exc_info())
File "/usr/lib/pymodules/python2.7/nose/proxy.py", line 134, in addError
plugins.addError(self.test, err)
File "/usr/lib/pymodules/python2.7/nose/plugins/manager.py", line 94, in __call__
return self.call(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/plugins/manager.py", line 162, in simple
result = meth(*arg, **kw)
File "/usr/lib/pymodules/python2.7/nose/plugins/manager.py", line 320, in addError
return self.plugin.addError(test.test, err, capt)
AttributeError: 'ContextSuite' object has no attribute 'test'

We should either fix the tests or fix the bugs they encounter, if any. This situation exists at least since I knew about datapkg.
Since a requirement to dpm "commits" is to create suitable tests and ensure that the commit does not break the system, we should have working tests.