[Pkg-mozext-commits] [requestpolicy] 137/257: [tst][ref] self.your_policy -> self.settings.*
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 3cf7419952e26745eef3732aeebdd232edc94029
Author: Martin Kimmerle <dev at 256k.de>
Date: Tue Nov 17 00:03:46 2015 +0100
[tst][ref] self.your_policy -> self.settings.*
---
tests/marionette/rp_puppeteer/__init__.py | 8 ++++----
tests/marionette/rp_puppeteer/tests/test_rules_table.py | 4 ++--
tests/marionette/rp_puppeteer/tests/test_your_policy.py | 8 ++++----
tests/marionette/rp_puppeteer/ui/settings/__init__.py | 12 ++++++++++++
4 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/tests/marionette/rp_puppeteer/__init__.py b/tests/marionette/rp_puppeteer/__init__.py
index c834013..31664c5 100644
--- a/tests/marionette/rp_puppeteer/__init__.py
+++ b/tests/marionette/rp_puppeteer/__init__.py
@@ -52,6 +52,10 @@ class RequestPolicyPuppeteer(object):
def request_log(self):
pass
+ @use_class_as_property('ui.settings.Settings')
+ def settings(self):
+ pass
+
@use_class_as_property('ui.tabs.Tabs')
def tabs(self):
pass
@@ -59,7 +63,3 @@ class RequestPolicyPuppeteer(object):
@use_class_as_property('ui.web_utils.WebUtils')
def web_utils(self):
pass
-
- @use_class_as_property('ui.settings.your_policy.YourPolicy')
- def your_policy(self):
- pass
diff --git a/tests/marionette/rp_puppeteer/tests/test_rules_table.py b/tests/marionette/rp_puppeteer/tests/test_rules_table.py
index 403f4b3..18262fb 100644
--- a/tests/marionette/rp_puppeteer/tests/test_rules_table.py
+++ b/tests/marionette/rp_puppeteer/tests/test_rules_table.py
@@ -14,9 +14,9 @@ class RulesTableTestCase(RequestPolicyTestCase):
super(RulesTableTestCase, self).setUp()
self.marionette.set_context("content")
- self.your_policy.open()
+ self.settings.your_policy.open()
- self.table = self.your_policy.rules_table
+ self.table = self.settings.your_policy.rules_table
self.data = ExemplaryRules(lambda: self.marionette)
diff --git a/tests/marionette/rp_puppeteer/tests/test_your_policy.py b/tests/marionette/rp_puppeteer/tests/test_your_policy.py
index 9286dee..e34df7a 100644
--- a/tests/marionette/rp_puppeteer/tests/test_your_policy.py
+++ b/tests/marionette/rp_puppeteer/tests/test_your_policy.py
@@ -13,10 +13,10 @@ class YourPolicyTestCase(RequestPolicyTestCase):
super(YourPolicyTestCase, self).setUp()
self.marionette.set_context("content")
- self.your_policy.open()
+ self.settings.your_policy.open()
- self.rules_table = self.your_policy.rules_table
- self.add_rule_form = self.your_policy.add_rule_form
+ self.rules_table = self.settings.your_policy.rules_table
+ self.add_rule_form = self.settings.your_policy.add_rule_form
self.data = ExemplaryRules(lambda: self.marionette)
@@ -38,7 +38,7 @@ class TestYourPolicy(YourPolicyTestCase):
self.marionette.navigate("about:blank")
self.assertNotEqual(self.marionette.get_url(),
"about:requestpolicy?yourpolicy")
- self.your_policy.open()
+ self.settings.your_policy.open()
self.assertEqual(self.marionette.get_url(),
"about:requestpolicy?yourpolicy")
diff --git a/tests/marionette/rp_puppeteer/ui/settings/__init__.py b/tests/marionette/rp_puppeteer/ui/settings/__init__.py
index 8b13789..9cec4ae 100644
--- a/tests/marionette/rp_puppeteer/ui/settings/__init__.py
+++ b/tests/marionette/rp_puppeteer/ui/settings/__init__.py
@@ -1 +1,13 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
+from firefox_puppeteer.base import BaseLib
+from rp_puppeteer.decorators import use_class_as_property
+
+
+class Settings(BaseLib):
+
+ @use_class_as_property('ui.settings.your_policy.YourPolicy')
+ def your_policy(self):
+ pass
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list