99
1010
1111@pytest .mark .parametrize (
12- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
12+ "convert" ,
13+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
14+ ids = ["raw" , "json" , "hyperjson" ],
1315)
1416def test_simple (convert ):
1517 matcher = streamson .SimpleMatcher ('{"users"}[]' )
@@ -23,7 +25,9 @@ def test_simple(convert):
2325
2426
2527@pytest .mark .parametrize (
26- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
28+ "convert" ,
29+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
30+ ids = ["raw" , "json" , "hyperjson" ],
2731)
2832def test_depth (convert ):
2933 matcher = streamson .DepthMatcher (1 )
@@ -45,7 +49,9 @@ def test_depth(convert):
4549
4650
4751@pytest .mark .parametrize (
48- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
52+ "convert" ,
53+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
54+ ids = ["raw" , "json" , "hyperjson" ],
4955)
5056def test_invert (convert ):
5157 matcher = ~ streamson .DepthMatcher (2 )
@@ -55,7 +61,9 @@ def test_invert(convert):
5561
5662
5763@pytest .mark .parametrize (
58- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
64+ "convert" ,
65+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
66+ ids = ["raw" , "json" , "hyperjson" ],
5967)
6068def test_all (convert ):
6169 matcher = streamson .SimpleMatcher ('{"users"}[]' ) & streamson .SimpleMatcher ("{}[1]" )
@@ -68,7 +76,9 @@ def test_all(convert):
6876
6977
7078@pytest .mark .parametrize (
71- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
79+ "convert" ,
80+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
81+ ids = ["raw" , "json" , "hyperjson" ],
7282)
7383def test_any (convert ):
7484 matcher = streamson .DepthMatcher (2 , 2 ) | streamson .SimpleMatcher ('{"users"}' )
@@ -84,7 +94,9 @@ def test_any(convert):
8494
8595
8696@pytest .mark .parametrize (
87- "convert" , [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )], ids = ["raw" , "json" , "hyperjson" ],
97+ "convert" ,
98+ [lambda x : x , lambda x : json .dumps (x ), lambda x : hyperjson .dumps (x )],
99+ ids = ["raw" , "json" , "hyperjson" ],
88100)
89101def test_complex (convert ):
90102 matcher = (streamson .DepthMatcher (2 , 2 ) | streamson .SimpleMatcher ('{"users"}' )) & ~ streamson .SimpleMatcher (
0 commit comments