Skip to content

Commit

Permalink
refactor: removed test_w_numeric as it was redundent to test_w_numeri…
Browse files Browse the repository at this point in the history
…c_precision_and_scale_valid (#350)
  • Loading branch information
vi3k6i5 committed May 19, 2021
1 parent e69e6ab commit 7d5a6e1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/unit/test__helpers.py
Expand Up @@ -220,15 +220,6 @@ def test_w_timestamp_w_tz(self):
self.assertIsInstance(value_pb, Value)
self.assertEqual(value_pb.string_value, "2021-02-08T07:00:00.000000Z")

def test_w_numeric(self):
import decimal
from google.protobuf.struct_pb2 import Value

value = decimal.Decimal("9999999999999999999999999999.999999999")
value_pb = self._callFUT(value)
self.assertIsInstance(value_pb, Value)
self.assertEqual(value_pb.string_value, str(value))

def test_w_unknown_type(self):
with self.assertRaises(ValueError):
self._callFUT(object())
Expand Down

0 comments on commit 7d5a6e1

Please sign in to comment.