aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/jmespath
diff options
context:
space:
mode:
authorabodrov <abodrov@yandex-team.ru>2022-02-10 16:47:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:18 +0300
commitf02a874a7290593efbe4b3aeae69a04b46c1cc86 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/python/jmespath
parent1b8c043abfc689b3d27384c4202b20031fc4ae31 (diff)
downloadydb-f02a874a7290593efbe4b3aeae69a04b46c1cc86.tar.gz
Restoring authorship annotation for <abodrov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/jmespath')
-rw-r--r--contrib/python/jmespath/tests/test_compliance.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/python/jmespath/tests/test_compliance.py b/contrib/python/jmespath/tests/test_compliance.py
index 7b06ad5a371..86e82970273 100644
--- a/contrib/python/jmespath/tests/test_compliance.py
+++ b/contrib/python/jmespath/tests/test_compliance.py
@@ -1,5 +1,5 @@
import os
-import pytest
+import pytest
from pprint import pformat
from . import OrderedDict
from . import json
@@ -14,7 +14,7 @@ NOT_SPECIFIED = object()
OPTIONS = Options(dict_cls=OrderedDict)
-def _load_all_cases():
+def _load_all_cases():
for full_path in _walk_files():
if full_path.endswith('.json'):
for given, test_type, test_data in load_cases(full_path):
@@ -23,9 +23,9 @@ def _load_all_cases():
# test suite, so we only care about 'result' and
# 'error' test_types.
if test_type == 'result':
- yield (given, t['expression'], t['result'], os.path.basename(full_path))
+ yield (given, t['expression'], t['result'], os.path.basename(full_path))
elif test_type == 'error':
- yield (given, t['expression'], t['error'], os.path.basename(full_path))
+ yield (given, t['expression'], t['error'], os.path.basename(full_path))
def _walk_files():
@@ -60,14 +60,14 @@ def load_cases(full_path):
yield (given, test_type, case)
-@pytest.mark.parametrize(
- 'given,expression,expected,filename',
- list(_load_all_cases())
-)
-def test_compliance(given, expression, expected, filename):
- _test_expression(given, expression, expected, filename)
-
-
+@pytest.mark.parametrize(
+ 'given,expression,expected,filename',
+ list(_load_all_cases())
+)
+def test_compliance(given, expression, expected, filename):
+ _test_expression(given, expression, expected, filename)
+
+
def _test_expression(given, expression, expected, filename):
import jmespath.parser
try: