Skip to content

Commit

Permalink
tox errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sepi committed Dec 26, 2016
1 parent 41e44ef commit a3e50f8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
4 changes: 3 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
pytest
selenium
selenium
tox
flake8==2.5.0
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[tox]
envlist=pep8

[testenv]
deps =
-r{toxinidir}/test-requirements.txt
basepython = python2.7

[testenv:pep8]
commands = flake8 webdriver_manager
5 changes: 3 additions & 2 deletions webdriver_manager/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests

from webdriver_manager.binary import Binary
from webdriver_manager.utils import Archive, OSUtils
from webdriver_manager.utils import Archive


class CacheManager:
Expand All @@ -21,7 +21,8 @@ def create_cache_dir(self, driver_path):
os.makedirs(driver_path)

def get_cached_binary(self, name, version, os_type):
logging.warning("Checking for {} {}:{} in cache".format(os_type, name, version))
logging.warning("Checking for {} {}:{} in cache".
format(os_type, name, version))
if "win" in os_type:
name += ".exe"
for dirName, subdirList, fileList in os.walk(self.get_cache_path()):
Expand Down
3 changes: 1 addition & 2 deletions webdriver_manager/ff_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
access_token = "080f91e60fd349877afefede688c59e8c415f877"
access_token = ""
mozila_latest_release = "https://api.github.com/repos/mozilla/geckodriver/releases/latest"
mozila_release_tag = "https://api.github.com/repos/mozilla/geckodriver/releases/tags/{0}"

2 changes: 0 additions & 2 deletions webdriver_manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import tarfile
import zipfile

from webdriver_manager.binary import Binary


class Archive:
def __init__(self):
Expand Down

0 comments on commit a3e50f8

Please sign in to comment.