Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (18 sloc) 0.863 kb
5e84632 add --apibaseurl option
bebef1987 authored
1 #!/usr/bin/env python
2
4f8cc9e @teodosia Upgrade license to MPL 2
teodosia authored
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5e84632 add --apibaseurl option
bebef1987 authored
6
4ed7709 Update conftest.py to cope with da plugin (davehunt's code)
Zac authored
7 import py
d83da82 new paginator region
bebef1987 authored
8
6fb6db7 @justinpotts Fixed flake8 errors
justinpotts authored
9
5e84632 add --apibaseurl option
bebef1987 authored
10 def pytest_runtest_setup(item):
4ed7709 Update conftest.py to cope with da plugin (davehunt's code)
Zac authored
11 pytest_mozwebqa = py.test.config.pluginmanager.getplugin("mozwebqa")
30bee31 @m8ttyB update the DiscoveryPane class to be aware of --servicesbaseurl
m8ttyB authored
12 pytest_mozwebqa.TestSetup.services_base_url = item.config.option.services_base_url
5e84632 add --apibaseurl option
bebef1987 authored
13
d83da82 new paginator region
bebef1987 authored
14
5e84632 add --apibaseurl option
bebef1987 authored
15 def pytest_addoption(parser):
30bee31 @m8ttyB update the DiscoveryPane class to be aware of --servicesbaseurl
m8ttyB authored
16 parser.addoption("--servicesbaseurl",
5e84632 add --apibaseurl option
bebef1987 authored
17 action="store",
30bee31 @m8ttyB update the DiscoveryPane class to be aware of --servicesbaseurl
m8ttyB authored
18 dest='services_base_url',
5e84632 add --apibaseurl option
bebef1987 authored
19 metavar='str',
30bee31 @m8ttyB update the DiscoveryPane class to be aware of --servicesbaseurl
m8ttyB authored
20 default="",
5e84632 add --apibaseurl option
bebef1987 authored
21 help="specify the api url")
22
d83da82 new paginator region
bebef1987 authored
23
5e84632 add --apibaseurl option
bebef1987 authored
24 def pytest_funcarg__mozwebqa(request):
4ed7709 Update conftest.py to cope with da plugin (davehunt's code)
Zac authored
25 pytest_mozwebqa = py.test.config.pluginmanager.getplugin("mozwebqa")
26 return pytest_mozwebqa.TestSetup(request)
Something went wrong with that request. Please try again.