nyash-qq / galaxy-plugin-poe

Path of Exile python plugin for GOG Galaxy 2.0
GNU General Public License v3.0
7 stars 2 forks source link

2 Failed tests after install #3

Open Movian opened 5 years ago

Movian commented 5 years ago

Finished install, however it appears the package is failing 2 of its internall tests and passing 34.

Providing complete Powershell output, Galaxy 2.0 still not seeing the interface so presume these 2 failures are preventing integration still.

I did notice it forced a downgrade of pip from 2.2 to 1.1 not sure if that is a requirement to use that specific version.

PS C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed> git clone https://github.com/nyash-qq/galaxy-plugin-poe.git Cloning into 'galaxy-plugin-poe'... remote: Enumerating objects: 87, done. remote: Counting objects: 100% (87/87), done. remote: Compressing objects: 100% (47/47), done. remote: Total 87 (delta 43), reused 80 (delta 38), pack-reused 0 Unpacking objects: 100% (87/87), done. PS C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed> cd galaxy-plugin-poe PS C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed\galaxy-plugin-poe> pip install invoke Requirement already satisfied: invoke in c:\users\movia\appdata\local\programs\python\python37-32\lib\site-packages (1.3.0) WARNING: You are using pip version 19.2.2, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. PS C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed\galaxy-plugin-poe> inv test build install Collecting pip<19.2 Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB) Installing collected packages: pip Found existing installation: pip 19.2.2 Uninstalling pip-19.2.2: Successfully uninstalled pip-19.2.2 Successfully installed pip-19.1.1 Collecting aiofiles==0.4.0 (from -r requirements-release.txt (line 1)) Downloading https://files.pythonhosted.org/packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl Collecting aiohttp==3.5.4 (from -r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/2b/6f/a20c36018f2a1804b54bce2377f06ccd173572351f17e1df098be38eba5a/aiohttp-3.5.4-cp37-cp37m-win32.whl (583kB) Collecting beautifulsoup4==4.7.1 (from -r requirements-release.txt (line 3)) Downloading https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl (94kB) Collecting galaxy.plugin.api==0.47 (from -r requirements-release.txt (line 4)) Downloading https://files.pythonhosted.org/packages/0c/2c/e40edbb76f11d8234876a58e64940219853343801b12008d52ff03919775/galaxy.plugin.api-0.47-py3-none-any.whl Collecting lxml==4.3.4 (from -r requirements-release.txt (line 5)) Downloading https://files.pythonhosted.org/packages/11/82/a7503d9db5b08e58d989331b097ae0133c12753083838006c2578af1a02d/lxml-4.3.4-cp37-cp37m-win32.whl (3.2MB) Collecting psutil==5.6.3 (from -r requirements-release.txt (line 6)) Downloading https://files.pythonhosted.org/packages/3b/92/2a7fb18054ac12483fb72f281c285d21642ca3d29fc6a06f0e44d4b36d83/psutil-5.6.3-cp37-cp37m-win32.whl (230kB) Collecting pip-tools==3.8.0 (from -r requirements.txt (line 2)) Downloading https://files.pythonhosted.org/packages/1c/a1/fc5d034448ca3ab0a8d8b97a064db05fcce6ac8d197bc1fd55e8daa84299/pip_tools-3.8.0-py2.py3-none-any.whl Collecting pytest==4.2.0 (from -r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/0d/c4/8093b4ffdde66628d4cb138d1d53726e2c21c23ac397cb75494e3f4310c9/pytest-4.2.0-py2.py3-none-any.whl (218kB) Collecting pytest-flakes==4.0.0 (from -r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/d2/89/69c0b396fed5a48daa88d70225742163cc6e3b48aeb41c5d3cc3d46275b5/pytest_flakes-4.0.0-py2.py3-none-any.whl Collecting pytest-pythonpath==0.7.3 (from -r requirements.txt (line 5)) Downloading https://files.pythonhosted.org/packages/46/c1/4b784495bb316962962df191b3c1b2302c60236301406283a9de1470786f/pytest-pythonpath-0.7.3.tar.gz Collecting pytest-asyncio==0.10.0 (from -r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/55/8e/c45f87e42c2e905082e98753d4cb6b71e6da086c71bf15899a6aee285304/pytest_asyncio-0.10.0-py3-none-any.whl Collecting pytest-mock==1.10.3 (from -r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/22/54/73c2c1ed029c58ec0344a07495c1c273a593d6d2a2267bba2d2a939c1e6e/pytest_mock-1.10.3-py2.py3-none-any.whl Collecting yarl<2.0,>=1.0 (from aiohttp==3.5.4->-r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/93/c7/2289309ac07b1ea6c31b141ab9883de5bc575b00eee18a582ca4552f3248/yarl-1.3.0-cp37-cp37m-win32.whl (115kB) Collecting multidict<5.0,>=4.0 (from aiohttp==3.5.4->-r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/f9/ff/75a54f8ca2378ed79f9bf94a6212248a14bbc0009da2803e4d01af1791bf/multidict-4.5.2-cp37-cp37m-win32.whl (131kB) Collecting chardet<4.0,>=2.0 (from aiohttp==3.5.4->-r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) Requirement already satisfied: attrs>=17.3.0 in c:\users\movia\appdata\local\programs\python\python37-32\lib\site-packages (from aiohttp==3.5.4->-r requirements-release.txt (line 2)) (19.1.0) Collecting async-timeout<4.0,>=3.0 (from aiohttp==3.5.4->-r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl Collecting soupsieve>=1.2 (from beautifulsoup4==4.7.1->-r requirements-release.txt (line 3)) Downloading https://files.pythonhosted.org/packages/0b/44/0474f2207fdd601bb25787671c81076333d2c80e6f97e92790f8887cf682/soupsieve-1.9.3-py2.py3-none-any.whl Collecting certifi==2019.3.9 (from galaxy.plugin.api==0.47->-r requirements-release.txt (line 4)) Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB) Collecting click>=6 (from pip-tools==3.8.0->-r requirements.txt (line 2)) Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB) Requirement already satisfied: six in c:\users\movia\appdata\local\programs\python\python37-32\lib\site-packages (from pip-tools==3.8.0->-r requirements.txt (line 2)) (1.12.0) Collecting more-itertools>=4.0.0 (from pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/45/dc/3241eef99eb45f1def35cf93af35d1cf9ef4c0991792583b8f33ea41b092/more_itertools-7.2.0-py3-none-any.whl (57kB) Collecting py>=1.5.0 (from pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/76/bc/394ad449851729244a97857ee14d7cba61ddb268dce3db538ba2f2ba1f0f/py-1.8.0-py2.py3-none-any.whl (83kB) Collecting pluggy>=0.7 (from pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/06/ee/de89e0582276e3551df3110088bf20844de2b0e7df2748406876cc78e021/pluggy-0.12.0-py2.py3-none-any.whl Requirement already satisfied: setuptools in c:\users\movia\appdata\local\programs\python\python37-32\lib\site-packages (from pytest==4.2.0->-r requirements.txt (line 3)) (40.8.0) Collecting atomicwrites>=1.0 (from pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/52/90/6155aa926f43f2b2a22b01be7241be3bfd1ceaf7d0b3267213e8127d41f4/atomicwrites-1.3.0-py2.py3-none-any.whl Collecting colorama; sys_platform == "win32" (from pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl Collecting pyflakes (from pytest-flakes==4.0.0->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl (59kB) Collecting idna>=2.0 (from yarl<2.0,>=1.0->aiohttp==3.5.4->-r requirements-release.txt (line 2)) Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB) Collecting importlib-metadata>=0.12 (from pluggy>=0.7->pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/ad/aa/25fcbded2ab4ed4ff3071d1e000cd4f8f9c65653d2d7157dd105a8e81d42/importlib_metadata-0.19-py2.py3-none-any.whl Collecting zipp>=0.5 (from importlib-metadata>=0.12->pluggy>=0.7->pytest==4.2.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/74/3d/1ee25a26411ba0401b43c6376d2316a71addcc72ef8690b101b4ea56d76a/zipp-0.6.0-py2.py3-none-any.whl Installing collected packages: aiofiles, multidict, idna, yarl, chardet, async-timeout, aiohttp, soupsieve, beautifulsoup4, certifi, galaxy.plugin.api, lxml, psutil, click, pip-tools, more-itertools, py, zipp, importlib-metadata, pluggy, atomicwrites, colorama, pytest, pyflakes, pytest-flakes, pytest-pythonpath, pytest-asyncio, pytest-mock Running setup.py install for pytest-pythonpath: started Running setup.py install for pytest-pythonpath: finished with status 'done' Successfully installed aiofiles-0.4.0 aiohttp-3.5.4 async-timeout-3.0.1 atomicwrites-1.3.0 beautifulsoup4-4.7.1 certifi-2019.3.9 chardet-3.0.4 click-7.0 colorama-0.4.1 galaxy.plugin.api-0.47 idna-2.8 importlib-metadata-0.19 lxml-4.3.4 more-itertools-7.2.0 multidict-4.5.2 pip-tools-3.8.0 pluggy-0.12.0 psutil-5.6.3 py-1.8.0 pyflakes-2.1.1 pytest-4.2.0 pytest-asyncio-0.10.0 pytest-flakes-4.0.0 pytest-mock-1.10.3 pytest-pythonpath-0.7.3 soupsieve-1.9.3 yarl-1.3.0 zipp-0.6.0 WARNING: You are using pip version 19.1.1, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. ============================= test session starts ============================= platform win32 -- Python 3.7.4, pytest-4.2.0, py-1.8.0, pluggy-0.12.0 rootdir: C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed\galaxy-plugin-poe, inifile: pytest.ini plugins: asyncio-0.10.0, flakes-4.0.0, mock-1.10.3, pythonpath-0.7.3 collected 36 items

src\poe_http_client.py . [ 2%] src\poe_plugin.py . [ 5%] src\poe_types.py . [ 8%] tests__init__.py . [ 11%] tests\conftest.py . [ 13%] tests\test_achievements.py .....FF.. [ 38%] tests\test_authentication.py ........ [ 61%] tests\test_local_games.py ........... [ 91%] tests\test_owned_games.py .. [ 97%] tests\utils.py . [100%]

================================== FAILURES =================================== _ test_import_achievements_success[achievements_tags1-achievements1-cachedachievement1] 

achievements_tags = [

Shaper of Worlds

] achievements = [Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Shaper of Worlds'), Achievement(unlock_tim...e='Sacrifice of the Vaal'), Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Unforgettable')] cached_achievement = Achievement(unlock_time=1548111600, achievement_id=None, achievement_name='Augmentation') auth_poe_plugin = game_id = 'PathOfExile' date_time_mock =  @pytest.mark.asyncio  @pytest.mark.parametrize("achievements_tags, achievements, cached_achievement", [  ([], [], None)  , (_UNLOCKED_ACHIEVEMENTS_TAGS, _UNLOCKED_ACHIEVEMENTS, Achievement(1548111600, achievement_name="Augmentation"))  , (_UNLOCKED_ACHIEVEMENTS_TAGS, _UNLOCKED_ACHIEVEMENTS, Achievement(_UNLOCK_DATE, achievement_name="Augmentation"))  ])  async def test_import_achievements_success(  achievements_tags  , achievements  , cached_achievement  , auth_poe_plugin  , game_id  , date_time_mock  ):  unlocked_achievements = achievements[:]    if cached_achievement is not None:  auth_poe_plugin._achievements_cache[cached_achievement.achievement_name] = cached_achievement.unlock_time  unlocked_achievements.append(cached_achievement)   > assert await auth_poe_plugin.get_unlocked_achievements(  game_id, achievements_tags  ) == unlocked_achievements E AssertionError: assert [Achievement(...ugmentation')] == [Achievement(u...ugmentation')] E At index 0 diff: Achievement(unlock_time=1549515600, achievement_id=None, achievement_name='Shaper of Worlds') != Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Shaper of Worlds') E Use -v to get the full diff tests\test_achievements.py:221: AssertionError _ test_import_achievements_success[achievements_tags2-achievements2-cached_achievement2] _ achievements_tags = [

Shaper of Worlds

] achievements = [Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Shaper of Worlds'), Achievement(unlock_tim...e='Sacrifice of the Vaal'), Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Unforgettable')] cached_achievement = Achievement(unlock_time=datetime.datetime(2019, 2, 7, 0, 0), achievement_id=None, achievement_name='Augmentation') auth_poe_plugin = game_id = 'PathOfExile' date_time_mock =  @pytest.mark.asyncio  @pytest.mark.parametrize("achievements_tags, achievements, cached_achievement", [  ([], [], None)  , (_UNLOCKED_ACHIEVEMENTS_TAGS, _UNLOCKED_ACHIEVEMENTS, Achievement(1548111600, achievement_name="Augmentation"))  , (_UNLOCKED_ACHIEVEMENTS_TAGS, _UNLOCKED_ACHIEVEMENTS, Achievement(_UNLOCK_DATE, achievement_name="Augmentation"))  ])  async def test_import_achievements_success(  achievements_tags  , achievements  , cached_achievement  , auth_poe_plugin  , game_id  , date_time_mock  ):  unlocked_achievements = achievements[:]    if cached_achievement is not None:  auth_poe_plugin._achievements_cache[cached_achievement.achievement_name] = cached_achievement.unlock_time  unlocked_achievements.append(cached_achievement)   > assert await auth_poe_plugin.get_unlocked_achievements(  game_id, achievements_tags  ) == unlocked_achievements E AssertionError: assert [Achievement(...ugmentation')] == [Achievement(u...ugmentation')] E At index 0 diff: Achievement(unlock_time=1549515600, achievement_id=None, achievement_name='Shaper of Worlds') != Achievement(unlock_time=1549494000, achievement_id=None, achievement_name='Shaper of Worlds') E Use -v to get the full diff tests\test_achievements.py:221: AssertionError ===================== 2 failed, 34 passed in 0.53 seconds ===================== PS C:\Users\movia\AppData\Local\GOG.com\Galaxy\plugins\installed\galaxy-plugin-poe> inv test build install
nyash-qq commented 5 years ago

Tried to reproduce this in PowerShell, but it works for me. Will look at it later. For now, I've uploaded packed here: https://github.com/nyash-qq/galaxy-plugin-poe/releases/tag/0.2

Starting from pip==19.2 there is some issue with pip-tools, so I'm forcing 19.1.1

Movian commented 5 years ago

using that zip system works perfectly :)

Happy to help troubleshoot on the other issue, not familiar with Python but am a software dev so if you need me to do anything that will shed light let me know.

Will try running as an elevated powershell later... shouldn't matter for that folder location but just in case.