Skip to content

Commit

Permalink
Merge pull request #3033 from dhermes/no-more-connection-modules
Browse files Browse the repository at this point in the history
Renaming all remaining connection.py modules as _http.py.
  • Loading branch information
dhermes authored Feb 17, 2017
2 parents 4865602 + fbc1b54 commit e9ff5eb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import warnings

from google.cloud import client as client_module
from google.cloud.language.connection import Connection

from google.cloud.language._http import Connection
from google.cloud.language.document import Document


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestConnection(unittest.TestCase):

@staticmethod
def _get_target_class():
from google.cloud.language.connection import Connection
from google.cloud.language._http import Connection

return Connection

Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-language/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _make_one(self, *args, **kw):
return self._get_target_class()(*args, **kw)

def test_ctor(self):
from google.cloud.language.connection import Connection
from google.cloud.language._http import Connection

creds = make_mock_credentials()
http = object()
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-language/unit_tests/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _get_entities(include_entities):

def make_mock_client(response):
import mock
from google.cloud.language.connection import Connection
from google.cloud.language._http import Connection
from google.cloud.language.client import Client

connection = mock.Mock(spec=Connection)
Expand Down

0 comments on commit e9ff5eb

Please sign in to comment.