Skip to content

Commit a3e50f8

Browse files
author
sepi
committed
tox errors fix
1 parent 41e44ef commit a3e50f8

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

test-requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
pytest
2-
selenium
2+
selenium
3+
tox
4+
flake8==2.5.0

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tox]
2+
envlist=pep8
3+
4+
[testenv]
5+
deps =
6+
-r{toxinidir}/test-requirements.txt
7+
basepython = python2.7
8+
9+
[testenv:pep8]
10+
commands = flake8 webdriver_manager

webdriver_manager/cache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import requests
66

77
from webdriver_manager.binary import Binary
8-
from webdriver_manager.utils import Archive, OSUtils
8+
from webdriver_manager.utils import Archive
99

1010

1111
class CacheManager:
@@ -21,7 +21,8 @@ def create_cache_dir(self, driver_path):
2121
os.makedirs(driver_path)
2222

2323
def get_cached_binary(self, name, version, os_type):
24-
logging.warning("Checking for {} {}:{} in cache".format(os_type, name, version))
24+
logging.warning("Checking for {} {}:{} in cache".
25+
format(os_type, name, version))
2526
if "win" in os_type:
2627
name += ".exe"
2728
for dirName, subdirList, fileList in os.walk(self.get_cache_path()):

webdriver_manager/ff_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
access_token = "080f91e60fd349877afefede688c59e8c415f877"
1+
access_token = ""
22
mozila_latest_release = "https://api.github.com/repos/mozilla/geckodriver/releases/latest"
33
mozila_release_tag = "https://api.github.com/repos/mozilla/geckodriver/releases/tags/{0}"
4-

webdriver_manager/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import tarfile
66
import zipfile
77

8-
from webdriver_manager.binary import Binary
9-
108

119
class Archive:
1210
def __init__(self):

0 commit comments

Comments
 (0)