diff --git a/setup.cfg b/setup.cfg index 49746ad3..020cd290 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,7 @@ tag = True [bdist_wheel] universal = 1 -[bumpversion:file:setup.py] +[bumpversion:file:setusdfsdfsdfp.py] search = version='{current_version}', replace = version='{new_version}', diff --git a/setup.py b/setup.py index 2d2a6b68..842db769 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,12 @@ # not use this file except in compliance with the License. You may obtain # a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# +#http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# distributed under the License dfgdfgis distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. diff --git a/tests/conftest.py b/tests/conftest.py index 57ade5d9..9401d32e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -34,15 +34,7 @@ def delete_drivers_dir(): log(f"Delete {os.path.join(sys.path[0], 'ssl_disabled')} folder") shutil.rmtree(os.path.join(sys.path[0], 'ssl_disabled')) - if os.path.exists(os.path.join(os.path.expanduser("~"), 'custom-cache', ROOT_FOLDER_NAME)): - log(f"Delete {os.path.join(os.path.expanduser("~"), 'custom-cache')} folder") - shutil.rmtree(os.path.join(os.path.expanduser("~"), 'custom-cache')) - if os.path.exists(os.path.join(os.path.expanduser("~"), 'custom', ROOT_FOLDER_NAME)): - log(f"Delete {os.path.join(os.path.expanduser("~"), 'custom')} folder") - shutil.rmtree(os.path.join(os.path.expanduser("~"), 'custom')) - if os.path.exists(os.path.join(os.path.expanduser("~"), 'ssl_disabled', ROOT_FOLDER_NAME)): - log(f"Delete {os.path.join(os.path.expanduser("~"), 'ssl_disabled')} folder") - shutil.rmtree(os.path.join(os.path.expanduser("~"), 'ssl_disabled')) + except PermissionError as e: print(f"Can not delete folder {e}") @@ -51,4 +43,4 @@ def delete_drivers_dir(): @pytest.fixture(scope='function') def ssl_verify_enable(): yield - os.environ.pop('WDM_SSL_VERIFY', None) \ No newline at end of file + os.environ.pop('WDM_SSL_VERIFY', None) diff --git a/webdriver_manager/chrome.py b/webdriver_manager/chrome.py index 50ee4948..7b8ec886 100644 --- a/webdriver_manager/chrome.py +++ b/webdriver_manager/chrome.py @@ -15,16 +15,8 @@ def __init__( name: str = "chromedriver", url: str = "https://storage.googleapis.com/chrome-for-testing-public/", latest_release_url: str = "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE", - chrome_type: str = ChromeType.GOOGLE, - download_manager: Optional[DownloadManager] = None, - cache_manager: Optional[DriverCacheManager] = None, - os_system_manager: Optional[OperationSystemManager] = None + ): - super().__init__( - download_manager=download_manager, - cache_manager=cache_manager, - os_system_manager=os_system_manager - ) self.driver = ChromeDriver( name=name,