Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
fix: AutoApi changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fvalverd committed Nov 6, 2015
1 parent 702d513 commit 1b01b56
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install:
- sudo apt-get install -y libffi-dev libssl-dev mongodb-org=3.0.2 mongodb-org-server=3.0.2 mongodb-org-shell=3.0.2 mongodb-org-mongos=3.0.2 mongodb-org-tools=3.0.2
- python setup.py develop
- pip install coveralls
- pip install git+https://git@github.com/fvalverd/AutoApi#egg=AutoApi
- pip install auto_api
before_script:
- cp tests.cfg.default ~/tests.cfg
script:
Expand Down
2 changes: 1 addition & 1 deletion AutoApiClient/__init__.py → auto_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import requests

from AutoApiClient.exceptions import AuthException, ResourceException
from .exceptions import AuthException, ResourceException


class Client(object):
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version = '0.0.1'

setup(
name='AutoApiClient',
name='auto_api_client',
version=version,
description="Automatic API REST from Python",
long_description="""""",
Expand All @@ -28,7 +28,7 @@
install_requires=[
"requests==2.6.2"
],
tests_require=['nose', 'requests_mock'],
tests_require=['nose', 'requests_mock', 'auto_api'],
test_suite="tests",
entry_points="""
# -*- Entry points: -*-
Expand Down
6 changes: 3 additions & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import mock
import unittest

from AutoApi import app
from AutoApi.auth import _admin_manager_client
from auto_api.app import app
from auto_api.auth import _admin_manager_client


KEYS_TO_FIX = {
Expand Down Expand Up @@ -47,7 +47,7 @@ class FunctionalTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
super(FunctionalTests, cls).setUpClass()
cls.client_mock = mock.patch('AutoApiClient.requests', ClientWrapper(app.test_client()))
cls.client_mock = mock.patch('auto_api_client.requests', ClientWrapper(app.test_client()))
cls.client_mock.start()
cls.test_url = 'http://localhost:8686'

Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import requests_mock

from AutoApiClient import Api, Client
from auto_api_client import Api, Client


class TestApi(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import requests_mock

from AutoApiClient import Client, Collection
from AutoApiClient.exceptions import AuthException
from auto_api_client import Client, Collection
from auto_api_client.exceptions import AuthException


class TestCollectionNotLogged(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from AutoApiClient import Client, Collection
from AutoApiClient.exceptions import AuthException, ResourceException
from auto_api_client import Client, Collection
from auto_api_client.exceptions import AuthException, ResourceException
from tests import FunctionalTests


Expand Down
4 changes: 2 additions & 2 deletions tests/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import requests_mock

from AutoApiClient import Client, Resource
from AutoApiClient.exceptions import ResourceException
from auto_api_client import Client, Resource
from auto_api_client.exceptions import ResourceException


@requests_mock.Mocker()
Expand Down

0 comments on commit 1b01b56

Please sign in to comment.