Skip to content

Commit

Permalink
Merge pull request #143 from IlianIliev/master
Browse files Browse the repository at this point in the history
Adding test
  • Loading branch information
vbabiy committed Feb 18, 2024
2 parents f8bc2a1 + d9373fa commit 6a3a143
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ def test_return_dict(self):
self.assertEqual(data.serializer, camelized.serializer)


class NumberToCamelTestCase(TestCase):
def test_dict_with_numbers_as_keys(self):
data = {1: 'test', 'a': 'abc'}
self.assertEqual(camelize(data), data)


class GeneratorAsInputTestCase(TestCase):
def _underscore_generator(self):
yield {"simple_is_better": "than complex"}
Expand Down

0 comments on commit 6a3a143

Please sign in to comment.