Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2898D10D1D for ; Wed, 22 Jan 2014 20:57:14 +0000 (UTC) Received: (qmail 56666 invoked by uid 500); 22 Jan 2014 20:57:05 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 56213 invoked by uid 500); 22 Jan 2014 20:56:58 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 55979 invoked by uid 99); 22 Jan 2014 20:56:55 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 20:56:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A3A1F8A08B1; Wed, 22 Jan 2014 20:56:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: brondsem@apache.org To: allura-commits@incubator.apache.org Date: Wed, 22 Jan 2014 20:57:11 -0000 Message-Id: <16421312f9214df8aa10e5d40d97a7bc@git.apache.org> In-Reply-To: <94c643a0c4384b3db7d4529eb88a1231@git.apache.org> References: <94c643a0c4384b3db7d4529eb88a1231@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [19/26] git commit: [#7002] Fixed test failing when run after other tests [#7002] Fixed test failing when run after other tests Signed-off-by: Cory Johns Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9cd00168 Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9cd00168 Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9cd00168 Branch: refs/heads/db/7062 Commit: 9cd00168ca5e20a4b6b221e28dd7f2c76ae5cdac Parents: dc1ade5 Author: Cory Johns Authored: Tue Jan 21 22:57:45 2014 +0000 Committer: Tim Van Steenburgh Committed: Wed Jan 22 14:26:21 2014 +0000 ---------------------------------------------------------------------- Allura/allura/tests/functional/test_user_profile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9cd00168/Allura/allura/tests/functional/test_user_profile.py ---------------------------------------------------------------------- diff --git a/Allura/allura/tests/functional/test_user_profile.py b/Allura/allura/tests/functional/test_user_profile.py index 1f58868..a243bf5 100644 --- a/Allura/allura/tests/functional/test_user_profile.py +++ b/Allura/allura/tests/functional/test_user_profile.py @@ -163,16 +163,16 @@ class TestUserProfile(TestController): return m eps = map(ep, ['a', 'b', 'c', 'd']) order = {'user_profile_sections.order': 'b, d,c , f '} + delattr(type(app), '_sections') with mock.patch('allura.lib.helpers.iter_entry_points') as iep: with mock.patch.dict(tg.config, order): iep.return_value = eps sections = app.profile_sections assert_equal(sections, [ - eps[1].load(), - eps[3].load(), - eps[2].load(), - eps[0].load(), - ]) + eps[1].load(), + eps[3].load(), + eps[2].load(), + eps[0].load()]) r = self.app.get('/u/test-user/profile') assert_in('Section a', r.body) assert_in('Section b', r.body)