id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 11259 Fix some minor issues with functional test cases Ryan J Ollos Ryan J Ollos "This ticket proposes to fix the following issues with the functional test cases: 1. Attempting to execute a functional test module directly while working in a virtualenv results in: {{{ (t11258)user@ubuntu:~/Workspace/t11258/teo-rjollos.git$ ./trac/admin/tests/functional.py Traceback (most recent call last): File ""./trac/admin/tests/functional.py"", line 2, in from trac.tests.functional import * ImportError: No module named trac.tests.functional }}} With a replacement `#!/usr/bin/python` -> `#!/usr/bin/env python`, it will be possible to execute those test modules directly. 1. The module `trac/ticket/tests/functional.py` can't be run alone, failing with (first mentioned in comment:5:ticket:11176): {{{ (t11259)user@ubuntu:~/Workspace/t11259/teo-rjollos.git$ ./trac/ticket/tests/functional.py SKIP: validation of XHTML output in functional tests (no lxml installed) .....................................................................FFFFFFFFFFFFFFFFFFFFFFFFFF. ====================================================================== FAIL: runTest (__main__.RegressionTestTicket4630a) Test for regression of http://trac.edgewall.org/ticket/4630 a ---------------------------------------------------------------------- Traceback (most recent call last): File ""./trac/ticket/tests/functional.py"", line 1216, in runTest self._tester.login(u'joé') File ""/home/user/Workspace/t11259/teo-rjollos.git/trac/tests/functional/tester.py"", line 56, in login tc.find(""logged in as %s"" % username) File ""/home/user/Workspace/t11259/teo-rjollos.git/trac/tests/functional/better_twill.py"", line 203, in better_find raise twill.errors.TwillAssertionError(*args) TwillAssertionError: (""no match to 'logged in as jo\xc3\xa9'"", '/home/user/Workspace/t11259/teo-rjollos.git/testenv/trac/log/RegressionTestTicket4630a.html') }}} 1. [browser:/tags/trac-1.0.1/trac/db/tests/functional.py] doesn't have the executable property set on checkout from SVN or after cloning the Git repository. 1. Add license headers to all test case files." enhancement closed normal 1.0.2 general 1.0-stable normal fixed functional tests Each functional test case module can now be executed independently. All files in `tests` directories now have headers with license and copyright information.