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 71416d9 + 8834333 commit 4dee135
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@
from google.cloud.translate.client import BASE
from google.cloud.translate.client import Client
from google.cloud.translate.client import NMT
from google.cloud.translate.connection import Connection
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

from google.cloud._helpers import _to_bytes
from google.cloud.client import Client as BaseClient
from google.cloud.translate.connection import Connection

from google.cloud.translate._http import Connection


ENGLISH_ISO_639 = 'en'
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.translate.connection import Connection
from google.cloud.translate._http import Connection

return Connection

Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-translate/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _make_one(self, *args, **kw):
return self._get_target_class()(*args, **kw)

def test_constructor(self):
from google.cloud.translate.connection import Connection
from google.cloud.translate._http import Connection
from google.cloud.translate.client import ENGLISH_ISO_639

http = object()
Expand All @@ -38,7 +38,7 @@ def test_constructor(self):
self.assertEqual(client.target_language, ENGLISH_ISO_639)

def test_constructor_non_default(self):
from google.cloud.translate.connection import Connection
from google.cloud.translate._http import Connection

http = object()
target = 'es'
Expand Down

0 comments on commit 4dee135

Please sign in to comment.