Skip to content

Commit

Permalink
Actually skip tests and not just fail them
Browse files Browse the repository at this point in the history
  • Loading branch information
EnTeQuAk committed Mar 19, 2016
1 parent 43a843a commit e6567a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/keybar/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_to_server_without_tls_10(self, allow_offline):
response = session.get('https://tls1test.salesforce.com/s/')
assert response.status_code == 200

@pytest.mark.xfail
@pytest.mark.skip(reason='intermediate failure')
def test_under_downgrade_attack_to_ssl_3(self, allow_offline):
"""
Verify that the connection is rejected if the remote server (or man
Expand All @@ -96,15 +96,15 @@ def test_protocols_by_ssl_labs(self, allow_offline):

assert 'Your user agent has good protocol support' in response.text

@pytest.mark.xfail(os.environ.get('ON_TRAVIS', None) == 'true', reason='on travis')
@pytest.mark.skipif(os.environ.get('ON_TRAVIS', None) == 'true', reason='on travis')
def test_sni_suport(self, allow_offline):
session = requests.Session()
session.mount('https://', TLS12SSLAdapter())
response = session.get('https://sni.velox.ch/')
assert 'sent the following TLS server name indication extension' in response.text
assert 'negotiated protocol: TLSv1.2' in response.text

@pytest.mark.xfail(os.environ.get('ON_TRAVIS', None) == 'true', reason='on travis')
@pytest.mark.skipif(os.environ.get('ON_TRAVIS', None) == 'true', reason='on travis')
def test_vulnerability_logjam_by_ssl_labs(self, allow_offline):
assert verify_rejected_ssl('https://www.ssllabs.com:10445/')

Expand Down

0 comments on commit e6567a9

Please sign in to comment.