Skip to content

Commit

Permalink
remove the warning test (useless test)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyria committed May 4, 2018
1 parent 8315395 commit f518630
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,9 @@ def fail_if_request(url, request):
self.assertEqual(incursions.data[0].state, 'mobilizing')

def test_client_warning_header(self):
warnings.resetwarnings()
# trigger user-agent header warning
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
EsiClient()
self.assertEqual(len(w), 1)

# deprecated warning
warnings.simplefilter('error')
with httmock.HTTMock(public_incursion_warning):
warnings.simplefilter('error')
incursion_operation = self.app.op['get_incursions']

with self.assertRaises(UserWarning):
Expand Down
18 changes: 0 additions & 18 deletions test/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,6 @@ def test_esisecurity_init_with_app(self):

def test_esisecurity_other_init(self):
""" test security init without app and with urls """

warnings.resetwarnings()
# trigger user-agent header warning
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
EsiSecurity(
redirect_uri=TestEsiSecurity.CALLBACK_URI,
client_id=TestEsiSecurity.CLIENT_ID,
secret_key=TestEsiSecurity.SECRET_KEY,
sso_url='foo.com',
esi_url='bar.baz',
esi_datasource='singularity'
)
self.assertEqual(len(w), 1)

warnings.resetwarnings()
warnings.simplefilter('ignore')

with self.assertRaises(AttributeError):
EsiSecurity(
redirect_uri=TestEsiSecurity.CALLBACK_URI,
Expand Down

0 comments on commit f518630

Please sign in to comment.