Skip to content

Commit

Permalink
Adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
IlianIliev committed Nov 27, 2023
1 parent 7d4da4c commit d9373fa
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 d9373fa

Please sign in to comment.