Skip to content

Commit

Permalink
Removed recaptcha_challenge_field from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
git-commit committed Dec 5, 2014
1 parent f2dc22e commit f5586b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_recaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,26 @@ def test_recaptcha(self):
response = self.client.get('/')
assert b'//www.google.com/recaptcha/api/' in response.data


def test_invalid_recaptcha(self):
response = self.client.post('/', data={})
assert b'Invalid word' in response.data

def test_send_recaptcha_request(self):
response = self.client.post('/', data={
'recaptcha_challenge_field': 'test',
'recaptcha_response_field': 'test'
})
assert b'Invalid word' in response.data

def test_testing(self):
self.app.testing = True
response = self.client.post('/', data={
'recaptcha_challenge_field': 'test',
'recaptcha_response_field': 'test'
})
assert b'Invalid word' not in response.data

def test_no_private_key(self):
self.app.config.pop('RECAPTCHA_PRIVATE_KEY', None)
response = self.client.post('/', data={
'recaptcha_challenge_field': 'test',
'recaptcha_response_field': 'test'
})
assert response.status_code == 500
Expand Down

0 comments on commit f5586b5

Please sign in to comment.