File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1919
2020@pytest .mark .parametrize ("entry" , urlpatterntestdata )
2121def test (entry ):
22- if entry ["pattern" ] == [{"pathname" : "*{}**?" }]:
22+ if entry ["pattern" ] == [{"pathname" : "*{}**?" }] or entry [ "pattern" ] == [ "((?R)):" ] :
2323 pytest .skip ("unsupported in the implementation" )
2424
2525 if entry .get ("expected_obj" ) == "error" :
Original file line number Diff line number Diff line change 31183118 "expected_match" : {
31193119 "hostname" : { "input" : " localhost" , "groups" : { "domain" : " localhost" } }
31203120 }
3121+ },
3122+ {
3123+ "pattern" : [" ((?R)):" ],
3124+ "expected_obj" : " error"
3125+ },
3126+ {
3127+ "pattern" : [" (\\ H):" ],
3128+ "expected_obj" : " error"
3129+ },
3130+ {
3131+ "pattern" : [
3132+ {"pathname" : " /:foo((?<x>a))" }
3133+ ],
3134+ "inputs" : [
3135+ {"pathname" : " /a" }
3136+ ],
3137+ "expected_match" : {
3138+ "pathname" : {
3139+ "input" : " /a" ,
3140+ "groups" : {"foo" : " a" }
3141+ }
3142+ }
3143+ },
3144+ {
3145+ "pattern" : [
3146+ {"pathname" : " /foo/(bar(?<x>baz))" }
3147+ ],
3148+ "inputs" : [
3149+ {"pathname" : " /foo/barbaz" }
3150+ ],
3151+ "expected_match" : {
3152+ "pathname" : {
3153+ "input" : " /foo/barbaz" ,
3154+ "groups" : {"0" : " barbaz" }
3155+ }
3156+ }
31213157 }
31223158]
You can’t perform that action at this time.
0 commit comments