Fix deprecation warnings due to invalid escape sequences. (#3273)
* Fix deprecation warnings due to invalid escape sequences. * Fix linter error.
This commit is contained in:
parent
c321ad46b0
commit
7054143701
13 changed files with 35 additions and 35 deletions
|
|
@ -14,10 +14,10 @@ def test_flask_path_converting_simple():
|
|||
|
||||
|
||||
def test_flask_path_converting_regex():
|
||||
convert_regex_to_flask_path("/(?P<key_name>[a-zA-Z0-9\-_]+)").should.equal(
|
||||
'/<regex("[a-zA-Z0-9\-_]+"):key_name>'
|
||||
convert_regex_to_flask_path(r"/(?P<key_name>[a-zA-Z0-9\-_]+)").should.equal(
|
||||
r'/<regex("[a-zA-Z0-9\-_]+"):key_name>'
|
||||
)
|
||||
|
||||
convert_regex_to_flask_path("(?P<account_id>\d+)/(?P<queue_name>.*)$").should.equal(
|
||||
'<regex("\d+"):account_id>/<regex(".*"):queue_name>'
|
||||
)
|
||||
convert_regex_to_flask_path(
|
||||
r"(?P<account_id>\d+)/(?P<queue_name>.*)$"
|
||||
).should.equal(r'<regex("\d+"):account_id>/<regex(".*"):queue_name>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue