Skip to content

Commit

Permalink
Small style fixes before v0.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maliarov committed Oct 10, 2020
1 parent 1260e2d commit c4179bd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
Expand Down
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-

import setuptools
import os

#--------------------------------------------------------------------------------------------------------------

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, 'amazoncaptcha', '__version__.py'), 'r', encoding='utf-8') as f:
Expand Down Expand Up @@ -36,6 +40,8 @@ def readme(logo_end_line=14):
"selenium ~= 3.141.0"
]

#--------------------------------------------------------------------------------------------------------------

setuptools.setup(
name=about['__title__'],
version=about['__version__'],
Expand All @@ -56,3 +62,5 @@ def readme(logo_end_line=14):
'Source': about['__url__'],
},
)

#--------------------------------------------------------------------------------------------------------------
8 changes: 8 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# -*- coding: utf-8 -*-

from amazoncaptcha import AmazonCaptcha, AmazonCaptchaCollector, ContentTypeError, NotFolderError, __version__
from maliarov import webdriver
import unittest
import sys
import os

#--------------------------------------------------------------------------------------------------------------

here = os.path.abspath(os.path.dirname(__file__))
captchas_folder = os.path.join(here, 'captchas')
test_folder = os.path.join(here, 'test_folder')
Expand Down Expand Up @@ -109,5 +113,9 @@ def test_accuracy_test_in_multiprocessing(self):

self.assertIn('test-results.log', os.listdir(test_folder))

#--------------------------------------------------------------------------------------------------------------

if __name__ == '__main__':
unittest.main()

#--------------------------------------------------------------------------------------------------------------

0 comments on commit c4179bd

Please sign in to comment.