From add1710f7e8dda0e1f91f1fbc9af0ca6ccaa3a91 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 23 Jul 2015 14:24:30 -0500 Subject: [PATCH] Remove call to nonexistent NoSuchContext exception The base context plugin raised the nonexistent NoSuchContext exception if you try to use a context that doesn't exist. This change replaces that with the generic RallyException to avoid creating yet another new exception subclass. Change-Id: I6679db790d0384847852a674e471efe7e6098e88 --- tests/unit/fakes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index a724a6df..c0115857 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -1515,6 +1515,11 @@ class FakeContext(context.Context): pass +@context.context(name="fake_hidden_context", order=1, hidden=True) +class FakeHiddenContext(FakeContext): + pass + + @context.context(name="fake_user_context", order=1) class FakeUserContext(FakeContext):