Skip to content

Commit

Permalink
Remove pytest DeprecationWarnings (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbart authored Sep 6, 2020
1 parent 91babb9 commit 285cf12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/decorator/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_credentials_supported(self):
Access-Control-Allow-Credentials header.
'''
resp = self.get('/test_credentials_supported', origin='www.example.com')
self.assertEquals(resp.headers.get(ACL_CREDENTIALS), 'true')
self.assertEqual(resp.headers.get(ACL_CREDENTIALS), 'true')

def test_default(self):
''' The default behavior should be to disallow credentials.
Expand Down
2 changes: 1 addition & 1 deletion tests/decorator/test_origins.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_regex_mixed_list(self):
origin=domain):
self.assertEqual(domain, resp.headers.get(ACL_ORIGIN))

self.assertEquals("http://example.com",
self.assertEqual("http://example.com",
self.get('/test_regex_mixed_list', origin='http://example.com').headers.get(ACL_ORIGIN))

def test_multiple_protocols(self):
Expand Down
6 changes: 3 additions & 3 deletions tests/extension/test_app_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def setUp(self):
r'/test_send_wildcard_with_origin' : {
'send_wildcard':True
},
re.compile('/test_compiled_subdomain_\w*'): {
'origins': re.compile("http://example\d+.com")
re.compile(r'/test_compiled_subdomain_\w*'): {
'origins': re.compile(r"http://example\d+.com")
},
r'/test_defaults':{}
})
Expand Down Expand Up @@ -162,7 +162,7 @@ def test_regex_mixed_list(self):
origin=domain):
self.assertEqual(domain, resp.headers.get(ACL_ORIGIN))

self.assertEquals("http://example.com",
self.assertEqual("http://example.com",
self.get('/test_regex_mixed_list', origin='http://example.com').headers.get(ACL_ORIGIN))


Expand Down

0 comments on commit 285cf12

Please sign in to comment.