# Path: rakuten_ws/webservice.py
# class RakutenWebService(BaseWebService):
# 
#     rms = RmsService()
# 
#     ichiba = IchibaAPI()
#     books = BooksAPI()
#     travel = TravelAPI()
#     auction = AuctionAPI()
#     kobo = KoboAPI()
#     gora = GoraAPI()
#     recipe = RecipeAPI()
#     other = OtherAPI()


import re
import os
import sys
import json
import mock
import pytest
import httpretty as httpretty_module
from vcr import VCR
from rakuten_ws import RakutenWebService
        online_funcs.extend(['http.client.HTTPConnection.request',
                             'http.client.HTTPSConnection.request'])

    for func in online_funcs:
        monkeypatch.setattr(func, mock.Mock(side_effect=Exception('Online tests should use @pytest.mark.online')))


@pytest.fixture
def credentials():
    return {
        'application_id': os.environ.get('RAKUTEN_APP_ID', '<RAKUTEN_APP_ID>'),
        'license_key': os.environ.get('RMS_LICENSE_KEY', '<RMS_LICENSE_KEY>'),
        'secret_service': os.environ.get('RMS_SECRET_SERVICE', '<RMS_SECRET_SERVICE>'),
        'shop_url': os.environ.get('RMS_SHOP_URL', '<RMS_SHOP_URL>'),
    }


@pytest.fixture
def fake_credentials():
    return {
        'application_id': '<RAKUTEN_APP_ID>',
        'license_key': '<RMS_LICENSE_KEY>',
        'secret_service': '<RMS_SECRET_SERVICE>',
        'shop_url': '<RMS_SHOP_URL>',
    }


@pytest.fixture
def ws(credentials, request):
    ws_debug = request.config.getoption("--ws-debug")

# Path: rakuten_ws/webservice.py
# class RakutenWebService(BaseWebService):
# 
#     rms = RmsService()
# 
#     ichiba = IchibaAPI()
#     books = BooksAPI()
#     travel = TravelAPI()
#     auction = AuctionAPI()
#     kobo = KoboAPI()
#     gora = GoraAPI()
#     recipe = RecipeAPI()
#     other = OtherAPI()


# Path: tests/conftest.py
import re
import os
import sys
import json
import mock
import pytest
import httpretty as httpretty_module
from vcr import VCR
from rakuten_ws import RakutenWebService

        online_funcs.extend(['http.client.HTTPConnection.request',
                             'http.client.HTTPSConnection.request'])

    for func in online_funcs:
        monkeypatch.setattr(func, mock.Mock(side_effect=Exception('Online tests should use @pytest.mark.online')))


@pytest.fixture
def credentials():
    return {
        'application_id': os.environ.get('RAKUTEN_APP_ID', '<RAKUTEN_APP_ID>'),
        'license_key': os.environ.get('RMS_LICENSE_KEY', '<RMS_LICENSE_KEY>'),
        'secret_service': os.environ.get('RMS_SECRET_SERVICE', '<RMS_SECRET_SERVICE>'),
        'shop_url': os.environ.get('RMS_SHOP_URL', '<RMS_SHOP_URL>'),
    }


@pytest.fixture
def fake_credentials():
    return {
        'application_id': '<RAKUTEN_APP_ID>',
        'license_key': '<RMS_LICENSE_KEY>',
        'secret_service': '<RMS_SECRET_SERVICE>',
        'shop_url': '<RMS_SHOP_URL>',
    }


@pytest.fixture
def ws(credentials, request):
    ws_debug = request.config.getoption("--ws-debug")

    return RakutenWebService(debug=ws_debug, **credentials)