Skip to content

Commit

Permalink
Merge pull request googleapis#105 from jgeewax/firestore-testing-change
Browse files Browse the repository at this point in the history
Conform to standard testing pattern.
  • Loading branch information
mckoss authored Nov 9, 2016
2 parents f6850a2 + 3db54be commit 3b01445
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions firestore/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@

import unittest

from google.cloud.firestore import Client


class TestFirestore(unittest.TestCase):

@staticmethod
def _get_target_class():
from google.cloud.firestore.client import Client
return Client

def _make_one(self, *args, **kwargs):
return self._get_target_class()(*args, **kwargs)

def test_constructor(self):
with self.assertRaises(NotImplementedError):
Client('my-project-id')
self._make_one('my-project-id')

0 comments on commit 3b01445

Please sign in to comment.