Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make bidpom pip installable

  • Loading branch information...
commit 49ad762c0c397dd0855dc90eab0040097b89c930 1 parent e99bbbd
@bobsilverberg bobsilverberg authored
View
0  __init__.py → browserid/__init__.py
File renamed without changes
View
0  browser_id.py → browserid/browser_id.py
File renamed without changes
View
0  pages/__init__.py → browserid/pages/__init__.py
File renamed without changes
View
0  pages/base.py → browserid/pages/base.py
File renamed without changes
View
0  pages/complete_registration.py → browserid/pages/complete_registration.py
File renamed without changes
View
0  pages/reset_password.py → browserid/pages/reset_password.py
File renamed without changes
View
0  pages/sign_in.py → browserid/pages/sign_in.py
File renamed without changes
View
22 setup.py
@@ -0,0 +1,22 @@
+from setuptools import setup, find_packages
+import os
+
+# get documentation from the README
+try:
+ here = os.path.dirname(os.path.abspath(__file__))
+ description = file(os.path.join(here, 'README.md')).read()
+except (OSError, IOError):
+ description = ''
+
+setup(name='browserid',
+ version='1.0',
+ description="Mozilla BrowserID (Persona) Page Object Model",
+ long_description=description,
+ classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
+ keywords='mozilla',
+ author='Mozilla Web QA',
+ author_email='mozwebqa@mozilla.org',
+ url='https://github.com/mozilla/bidpom',
+ license='MPL 2.0',
+ packages=['browserid', 'browserid.pages'],
+ include_package_data=True)
View
8 tests/base.py
@@ -10,8 +10,8 @@
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
-from .. import BrowserID
-from .. mocks.user import MockUser
+from browserid import BrowserID
+from mocks.user import MockUser
import restmail
@@ -38,7 +38,7 @@ def log_out(self, selenium, timeout):
def create_verified_user(self, selenium, timeout):
user = MockUser()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(selenium, timeout, expect='new')
signin.sign_in_new_user(user.primary_email, user.password)
mail = restmail.get_mail(user.primary_email, timeout=timeout)
@@ -46,7 +46,7 @@ def create_verified_user(self, selenium, timeout):
mail[0]['text']).group(0)
selenium.get(verify_url)
- from .. pages.complete_registration import CompleteRegistration
+ from browserid.pages.complete_registration import CompleteRegistration
complete_registration = CompleteRegistration(selenium,
timeout,
expect='success')
View
6 tests/check_add_email.py
@@ -8,7 +8,7 @@
import pytest
-from .. import BrowserID
+from browserid import BrowserID
from base import BaseTest
import restmail
@@ -25,7 +25,7 @@ def test_add_email(self, mozwebqa):
self.log_out(mozwebqa.selenium, mozwebqa.timeout)
mozwebqa.selenium.find_element(*self._persona_login_button_locator).click()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='returning')
signin.click_add_another_email_address()
signin.new_email = user.additional_emails[0]
@@ -41,7 +41,7 @@ def test_add_email(self, mozwebqa):
mail[0]['text']).group(0)
mozwebqa.selenium.get(confirm_url)
- from .. pages.complete_registration import CompleteRegistration
+ from browserid.pages.complete_registration import CompleteRegistration
complete_registration = CompleteRegistration(mozwebqa.selenium,
mozwebqa.timeout,
expect='success')
View
6 tests/check_reset_password.py
@@ -8,7 +8,7 @@
import pytest
-from .. import BrowserID
+from browserid import BrowserID
from base import BaseTest
import restmail
@@ -23,7 +23,7 @@ def test_reset_password(self, mozwebqa):
self.log_out(mozwebqa.selenium, mozwebqa.timeout)
mozwebqa.selenium.find_element(*self._persona_login_button_locator).click()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='returning')
signin.click_this_is_not_me()
signin.email = user.primary_email
@@ -38,7 +38,7 @@ def test_reset_password(self, mozwebqa):
signin.switch_to_main_window()
mozwebqa.selenium.get(reset_url)
- from .. pages.reset_password import ResetPassword
+ from browserid.pages.reset_password import ResetPassword
reset_password = ResetPassword(mozwebqa.selenium)
user.password += '_new'
View
12 tests/check_sign_in.py
@@ -8,8 +8,8 @@
import time
from selenium.webdriver.support.ui import WebDriverWait
-from .. import BrowserID
-from .. mocks.user import MockUser
+from browserid import BrowserID
+from mocks.user import MockUser
from base import BaseTest
import restmail
@@ -25,7 +25,7 @@ def test_sign_in_helper(self, mozwebqa):
lambda s: s.find_element(*self._persona_logged_in_indicator_locator).is_displayed())
def test_sign_in(self, mozwebqa):
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='new')
signin.email = mozwebqa.email
assert signin.email == mozwebqa.email, "email getter failed"
@@ -40,7 +40,7 @@ def test_sign_in(self, mozwebqa):
@pytest.mark.travis
def test_sign_in_new_user_helper(self, mozwebqa):
user = MockUser()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='new')
print 'signing in as %s' % user.primary_email
signin.sign_in_new_user(user.primary_email, 'password')
@@ -50,7 +50,7 @@ def test_sign_in_new_user_helper(self, mozwebqa):
@pytest.mark.travis
def test_sign_in_new_user(self, mozwebqa):
user = MockUser()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='new')
print 'signing in as %s' % user.primary_email
signin.email = user.primary_email
@@ -89,7 +89,7 @@ def test_sign_in_is_this_your_computer(self, mozwebqa):
mozwebqa.selenium.find_element(*self._persona_login_button_locator).click()
- from .. pages.sign_in import SignIn
+ from browserid.pages.sign_in import SignIn
signin = SignIn(mozwebqa.selenium, mozwebqa.timeout, expect='returning')
signin.click_sign_in_returning_user(expect='remember')
signin.click_i_trust_this_computer()

0 comments on commit 49ad762

Please sign in to comment.
Something went wrong with that request. Please try again.