Ticket #3137 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Fix tests and include functional tests

Reported by: s0undt3ch Assigned to: pacopablo
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: tests
Cc: mgood, coderanger Trac Release: 0.11

Description

Here's a patch to fix tests.

Index: acct_mgr/tests/db.py
===================================================================
--- acct_mgr/tests/db.py        (revision 3734)
+++ acct_mgr/tests/db.py        (working copy)
@@ -21,7 +21,7 @@
 class _BaseTestCase(unittest.TestCase):
     def setUp(self):
         #self.basedir = os.path.realpath(tempfile.mkdtemp())
-        self.env = EnvironmentStub()
+        self.env = EnvironmentStub(enable=['trac.*', 'acct_mgr.*'])
         self.env.config.set('account-manager', 'password_store',
                             'SessionStore')
         self.store = SessionStore(self.env)

Attachments

fix_and_include_functional_tests.patch (31.3 kB) - added by s0undt3ch on 06/11/08 00:34:55.

Change History

06/06/08 15:34:56 changed by s0undt3ch

  • owner changed from mgood to pacopablo.

06/11/08 00:34:34 changed by s0undt3ch

  • cc set to mgood, coderanger.
  • type changed from defect to enhancement.
  • severity changed from blocker to normal.
  • summary changed from Fix tests to Fix tests and include functional tests.

I'm including you guys in CC in order to check the tests I'm about to attach, and to let me know if you have more to include, and, of course, to see if one of you guys check's in the patch.

P.S.: It's a mercurial patch, use patch -p1 < ....

06/11/08 00:34:55 changed by s0undt3ch

  • attachment fix_and_include_functional_tests.patch added.

06/11/08 00:40:08 changed by s0undt3ch

If you find it good to check in I can provide a svn patch, I'd just like to keep my local acct_mgr as pristine as possible.

06/13/08 11:12:53 changed by pacopablo

  • status changed from new to closed.
  • resolution set to fixed.

(In [3832])

  • Apply patch from s0undt3ch removing email verification for anonymous users. Refs #442
  • Apply patch from s0undt3ch implementing functional tests and fixing existing tests. Closes #3137.

Thanks for the patches s0undt3ch


Add/Change #3137 (Fix tests and include functional tests)




Change Properties
Action