fix: compatibility with jmespath, headers."Content-Type"

This commit is contained in:
debugtalk
2020-05-29 11:03:32 +08:00
parent be6d6c93a9
commit dffb096f05
2 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ class TestCompat(unittest.TestCase):
self.assertEqual(
compat.convert_jmespath("headers.Content-Type"), 'headers."Content-Type"'
)
self.assertEqual(
compat.convert_jmespath('headers."Content-Type"'), 'headers."Content-Type"'
)
self.assertEqual(
compat.convert_jmespath("body.data.buildings.0.building_id"),
"body.data.buildings[0].building_id",