Package: ftp.debian.org Severity: normal Tags: patch When attempting to set up a local copy of dak, I was unable to run the test suite. A patch is attached that amends the setup instructions.
*** /tmp/term.log dak@dak:/srv/daksrc$ ./tests/test_all.py ..................................................EE.......................................EE................................................... ====================================================================== ERROR: test_importing_auto_decruft (test_imports.ImportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/daksrc/tests/test_imports.py", line 15, in test_fn __import__('dak', fromlist=[cmd]) File "/srv/daksrc/dak/auto_decruft.py", line 45, in <module> from daklib.rm import remove, ReverseDependencyChecker File "/srv/daksrc/dak/daklib/rm.py", line 52, in <module> import debianbts as bts ImportError: No module named debianbts ====================================================================== ERROR: test_importing_bts_categorize (test_imports.ImportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/daksrc/tests/test_imports.py", line 15, in test_fn __import__('dak', fromlist=[cmd]) File "/srv/daksrc/dak/bts_categorize.py", line 37, in <module> import debianbts as bts ImportError: No module named debianbts ====================================================================== ERROR: test_importing_removals_report (test_imports.ImportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/daksrc/tests/test_imports.py", line 15, in test_fn __import__('dak', fromlist=[cmd]) File "/srv/daksrc/dak/removals_report.py", line 22, in <module> import debianbts ImportError: No module named debianbts ====================================================================== ERROR: test_importing_rm (test_imports.ImportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/daksrc/tests/test_imports.py", line 15, in test_fn __import__('dak', fromlist=[cmd]) File "/srv/daksrc/dak/rm.py", line 54, in <module> from daklib.rm import remove File "/srv/daksrc/dak/daklib/rm.py", line 52, in <module> import debianbts as bts ImportError: No module named debianbts ---------------------------------------------------------------------- Ran 144 tests in 0.475s FAILED (errors=4)
>From f0cb6b1b98c3fc74b0bdda2bf58c7f6585094d5f Mon Sep 17 00:00:00 2001 From: Luke Faraone <lfara...@debian.org> Date: Sat, 30 Apr 2016 21:59:52 +0000 Subject: [PATCH] Add python-debianbts as a dependency in setup/README Needed to run the test suite: ====================================================================== ERROR: test_importing_rm (test_imports.ImportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/daksrc/tests/test_imports.py", line 15, in test_fn __import__('dak', fromlist=[cmd]) File "/srv/daksrc/dak/rm.py", line 54, in <module> from daklib.rm import remove File "/srv/daksrc/dak/daklib/rm.py", line 52, in <module> import debianbts as bts ImportError: No module named debianbts Signed-off-by: Luke Faraone <lfara...@debian.org> --- setup/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/README b/setup/README index fb9298c..d53fb22 100644 --- a/setup/README +++ b/setup/README @@ -6,7 +6,7 @@ The following packages are needed for the database: and the following packages for dak itself: * python-psycopg2 python-sqlalchemy python-apt gnupg dpkg-dev lintian binutils-multiarch python-yaml less python-ldap python-pyrss2gen python-rrdtool - symlinks python-debian + symlinks python-debian python-debianbts (the schema assumes at least postgresql 9.1; ftpmaster in Debian currently uses the postgresql 9.4 version from Debian 8) -- 2.7.4