1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/module_utils/ec2
Will Thames 5f73bdc3bf [cloud] Improve Camel to Snake conversion in EC2 module_utils (#25015)
* Make camel_to_snake work on capitalized plurals

`TargetGroupARNs` should become `target_group_arns`, not
`target_group_ar_ns`

Promote `camel_to_snake` to top layer function but prefix
it with an underscore.

Add tests for improved `_camel_to_snake` function.

Reduce use of `re.compile` as it makes no sense when the
compilation result is not reused.

* Remove unused LooseVersion check

* Fix PLURALs case for camel_to_snake

Also renamed EXPECTED_CAMELIZATION to EXPECTED_SNAKIFICATION
2017-08-01 11:09:22 -04:00
..
__init__.py CloudRetry/AWSRetry backoff decorator with unit tests (#17039) 2016-09-13 16:46:59 -04:00
test_aws.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_camel_to_snake.py [cloud] Improve Camel to Snake conversion in EC2 module_utils (#25015) 2017-08-01 11:09:22 -04:00