mozilla/sumo-tests — pull request #92 by klrmn (2012-03-28 00:12:58+00:00)
Title: PageProvider

remove go_to_X_page from page classes
standardize on _page_url in page classes
create PageProvider object with methods for each of the pages the tests open, and which does login according to what the tests want
use PageProvider methods in the tests

I find it annoying that each test has to instantiate PageProvider inside each test, but the only other option would be for pytest-mozwebqa to do it, and that would imply that all projects used the same PageProvider

Sorry about the large diff - I did not include some pep8 compliance issues in it in order to keep it smaller

17:00:59-~/github/klrmn-sumo-tests$ mozrunsumo
============================= test session starts ==============================
platform darwin -- Python 2.6.1 -- pytest-2.2.3
collected 35 items

tests/desktop/test_kb_article.py ......
tests/desktop/test_new_user_registration.py .
tests/desktop/test_questions.py ....
tests/desktop/test_rewrites.py .....................
tests/desktop/test_search.py ...

========================= 35 passed in 353.02 seconds ==========================