Skip to content

Commit

Permalink
Fix tests for Python 3
Browse files Browse the repository at this point in the history
Include release 0.0.7
  • Loading branch information
Bruno Bernardino committed May 31, 2019
1 parent cbbf7b9 commit d5c6072
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[![Build Status](http://img.shields.io/travis/emotionLoop/visualCaptcha-python.svg?flat=true)](http://travis-ci.org/emotionLoop/visualCaptcha-python)
[![Coverage Status](https://coveralls.io/repos/emotionLoop/visualCaptcha-python/badge.svg?flat=true)](https://coveralls.io/r/emotionLoop/visualCaptcha-python)
[![Codacy](https://www.codacy.com/project/badge/528e5e89596e4bfb8a17292da017db4c)](https://www.codacy.com/app/bruno-bernardino/visualCaptcha-python)
[![Code Climate](https://codeclimate.com/github/emotionLoop/visualCaptcha-python/badges/gpa.svg)](https://codeclimate.com/github/emotionLoop/visualCaptcha-python)
[![Build Status](http://img.shields.io/travis/desirepath41/visualCaptcha-python.svg?flat=true)](http://travis-ci.org/desirepath41/visualCaptcha-python)
[![Coverage Status](https://coveralls.io/repos/desirepath41/visualCaptcha-python/badge.svg?flat=true)](https://coveralls.io/r/desirepath41/visualCaptcha-python)
[![Code Climate](https://codeclimate.com/github/desirepath41/visualCaptcha-python/badges/gpa.svg)](https://codeclimate.com/github/desirepath41/visualCaptcha-python)

# visualCaptcha-python

Python package for visualCaptcha's backend service
Python package for visualCaptcha's backend service (compatible with Python 2 and 3)


## Installation with PIP
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
setup(
name='visualcaptcha',
packages=['visualcaptcha'],
version='0.0.6',
version='0.0.7',
description='visualCaptcha backend package for python',
author='Bruno Bernardino',
author_email='[email protected]',
url='https://github.com/emotionLoop/visualCaptcha-python',
download_url='https://github.com/emotionLoop/visualCaptcha-python/tarball/0.0.6',
url='https://github.com/desirepath41/visualCaptcha-python',
download_url='https://github.com/desirepath41/visualCaptcha-python/tarball/0.0.7',
keywords=['captcha', 'visualcaptcha', 'security'],
classifiers=[],
package_data={
Expand Down
8 changes: 4 additions & 4 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ def test_return_unique_list(self):
self.assertEqual(optionsLength, numberOfOptions)

# Loop through all options, and count each time a duplicate value exists in the array
for i in xrange(0, optionsLength, 1):
for j in xrange(0, optionsLength, 1):
for i in range(0, optionsLength, 1):
for j in range(0, optionsLength, 1):
if (i != j and options[i]['value'] == options[j]['value']):
foundSimilarOptions += 1

Expand All @@ -435,7 +435,7 @@ def test_return_same_list(self):
thirdOptions = visualCaptcha.getImageOptions()

# Loop through all options, and test each time that the same object exists in both the other arrays
for i in xrange(0, numberOfOptions, 1):
for i in range(0, numberOfOptions, 1):
# Check if all the values match
self.assertEqual(firstOptions[i]['value'], secondOptions[i]['value'])
self.assertEqual(firstOptions[i]['value'], thirdOptions[i]['value'])
Expand Down Expand Up @@ -573,5 +573,5 @@ def test_stream_ungenerated_audio(self):
self.assertFalse(fileReturn)

if __name__ == '__main__':
print "Running unit tests"
print("Running unit tests")
unittest.main()

0 comments on commit d5c6072

Please sign in to comment.