Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #470 from zacc/plugin_0_10
Browse files Browse the repository at this point in the history
Upgrade plugin
  • Loading branch information
Teodosia Pop committed May 8, 2012
2 parents bb40a6c + 4ed7709 commit 8895ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions conftest.py
Expand Up @@ -4,11 +4,11 @@
# 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/.

import mozwebqa

import py

def pytest_runtest_setup(item):
mozwebqa.TestSetup.api_base_url = item.config.option.api_base_url
pytest_mozwebqa = py.test.config.pluginmanager.getplugin("mozwebqa")
pytest_mozwebqa.TestSetup.api_base_url = item.config.option.api_base_url


def pytest_addoption(parser):
Expand All @@ -21,4 +21,5 @@ def pytest_addoption(parser):


def pytest_funcarg__mozwebqa(request):
return mozwebqa.TestSetup(request)
pytest_mozwebqa = py.test.config.pluginmanager.getplugin("mozwebqa")
return pytest_mozwebqa.TestSetup(request)
3 changes: 2 additions & 1 deletion requirements.txt
Expand Up @@ -8,5 +8,6 @@ pytest-xdist==1.8
PyYAML==3.10
execnet==1.0.9
BeautifulSoup==3.2.0
pytest-mozwebqa==0.9
pytest-mozwebqa==0.10
UnittestZero
requests==0.11.2

0 comments on commit 8895ff2

Please sign in to comment.