netzulo / qacode

Main Library written on python to execute functional tests throught selenium API coded down w3c webdriver specification
GNU General Public License v3.0
5 stars 1 forks source link

[BUG] can't launch tests after install on a fresh Win10 with python 3.6.8 #293

Closed netzulo closed 4 years ago

netzulo commented 4 years ago

Fails after python setup.py clean build install && pytest

_________ ERROR collecting tests/002_benchmarks/suite_001_browsers.py _________
C:\Users\cronos\Envs\qacode\lib\site-packages\pytest-3.9.3-py3.6.egg\_pytest\python.py:448: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
.eggs\py-1.8.0-py3.6.egg\py\_path\local.py:701: in pyimport
    __import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
    ???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:656: in _load_unlocked
    ???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
    ???
C:\Users\cronos\Envs\qacode\lib\site-packages\pytest-3.9.3-py3.6.egg\_pytest\assertion\rewrite.py:294: in load_module
    six.exec_(co, mod.__dict__)
tests\002_benchmarks\suite_001_browsers.py:6: in <module>
    from qacode.core.bots.bot_base import BotBase
qacode\__init__.py:9: in <module>
    from qacode import core
qacode\core\__init__.py:5: in <module>
    from qacode.core import bots
qacode\core\bots\__init__.py:5: in <module>
    from qacode.core.bots import bot_base
qacode\core\bots\bot_base.py:7: in <module>
    from qacode.core.bots.modules.nav_base import NavBase
qacode\core\bots\modules\__init__.py:5: in <module>
    from qacode.core.bots.modules import nav_base
qacode\core\bots\modules\nav_base.py:16: in <module>
    from selenium.webdriver.remote.webelement import WebElement
E     File "C:\Users\cronos\Envs\qacode\lib\site-packages\selenium-3.14.0-py3.6.egg\selenium\webdriver\remote\webelement.py", line 175
E       """
E        ^
E   SyntaxError: invalid escape sequence \_
!!!!!!!!!!!!!!!!!! Interrupted: 15 errors during collection !!!!!!!!!!!!!!!!!!!
========================== 15 error in 1.78 seconds ===========================
netzulo commented 4 years ago

Waiting for selenium answer : https://github.com/SeleniumHQ/selenium/issues/7948

netzulo commented 4 years ago

Merged code, waiting for selenium before next step with this

netzulo commented 4 years ago

solved with

[pytest]
+ filterwarnings =
+    ignore::DeprecationWarning