abryazgin / test-task-Very-Interesting

Test task solution
0 stars 0 forks source link

Tests failed? (Python 3.5.5) #1

Open dmitry-saritasa opened 6 years ago

dmitry-saritasa commented 6 years ago

Hi Alexander,

thanks for submitting the test task, however on my side this is what I get

code/tests/BryazginAlexander on ξ‚  master via 🐍 tests 
➜ pytest                                                        
================================ test session starts =================================
platform linux -- Python 3.5.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /home/dmitry/Projects/tests/BryazginAlexander, inifile:
collected 0 items / 4 errors                                                         

======================================= ERRORS =======================================
_______________________ ERROR collecting tests/test_example.py _______________________
tests/test_example.py:4: in <module>
    from route import RoutePoint, RouteRefuel
src/route.py:81: in <module>
    class RouteManager:
src/route.py:90: in RouteManager
    across_points: Iterable(MapPoint),
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in __new__
    return _generic_new(cls.__next_in_mro__, cls, *args, **kwds)
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new
    return base_cls.__new__(cls)
E   TypeError: Can't instantiate abstract class Iterable with abstract methods __iter__
______________________ ERROR collecting tests/test_no_routes.py ______________________
tests/test_no_routes.py:5: in <module>
    from pathfinder import find_path, NoSolution
src/pathfinder.py:3: in <module>
    from route import (
src/route.py:81: in <module>
    class RouteManager:
src/route.py:90: in RouteManager
    across_points: Iterable(MapPoint),
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in __new__
    return _generic_new(cls.__next_in_mro__, cls, *args, **kwds)
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new
    return base_cls.__new__(cls)
E   TypeError: Can't instantiate abstract class Iterable with abstract methods __iter__
______________ ERROR collecting tests/test_two_gas_stations_for_use.py _______________
tests/test_two_gas_stations_for_use.py:4: in <module>
    from route import RoutePoint, RouteRefuel
src/route.py:81: in <module>
    class RouteManager:
src/route.py:90: in RouteManager
    across_points: Iterable(MapPoint),
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in __new__
    return _generic_new(cls.__next_in_mro__, cls, *args, **kwds)
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new
    return base_cls.__new__(cls)
E   TypeError: Can't instantiate abstract class Iterable with abstract methods __iter__
_________________ ERROR collecting tests/test_with_across_points.py __________________
tests/test_with_across_points.py:4: in <module>
    from route import RoutePoint
src/route.py:81: in <module>
    class RouteManager:
src/route.py:90: in RouteManager
    across_points: Iterable(MapPoint),
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in __new__
    return _generic_new(cls.__next_in_mro__, cls, *args, **kwds)
../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new
    return base_cls.__new__(cls)
E   TypeError: Can't instantiate abstract class Iterable with abstract methods __iter__
!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!
============================== 4 error in 0.30 seconds ===============================
(tests) 
code/tests/BryazginAlexander on ξ‚  master via 🐍 tests 
abryazgin commented 6 years ago

on Python 3.5.2 all working correctly on Python 3.5.5 type hints failed - i used Iterable(<type>), but this not correct - correct using is Iterable[<type>] fixed, pushed

2018-05-03 11:25 GMT+05:00 Dmitry Semenov notifications@github.com:

Hi Alexander,

thanks for submitting the test task, however on my side this is what I get

code/tests/BryazginAlexander on ξ‚  master via 🐍 tests ➜ pytest ================================ test session starts ================================= platform linux -- Python 3.5.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0 rootdir: /home/dmitry/Projects/tests/BryazginAlexander, inifile: collected 0 items / 4 errors

======================================= ERRORS ======================================= _____ ERROR collecting tests/test_example.py ___ tests/test_example.py:4: in from route import RoutePoint, RouteRefuel src/route.py:81: in class RouteManager: src/route.py:90: in RouteManager across_points: Iterable(MapPoint), ../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in new return _generic_new(cls.next_in_mro, cls, *args, **kwds) ../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new return base_cls.new(cls) E TypeError: Can't instantiate abstract class Iterable with abstract methods iter____ ERROR collecting tests/test_no_routes.py __tests/test_no_routes.py:5: in from pathfinder import find_path, NoSolutionsrc/pathfinder.py:3: in from route import (src/route.py:81: in class RouteManager:src/route.py:90: in RouteManager across_points: Iterable(MapPoint),../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in new return _generic_new(cls.next_in_mro, cls, *args, kwds)../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new return base_cls.new(cls)E TypeError: Can't instantiate abstract class Iterable with abstract methods iter __ ERROR collecting tests/test_two_gas_stations_for_use.py _____ tests/test_two_gas_stations_for_use.py:4: in from route import RoutePoint, RouteRefuel src/route.py:81: in class RouteManager: src/route.py:90: in RouteManager across_points: Iterable(MapPoint), ../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in new return _generic_new(cls.next_in_mro, cls, *args, **kwds) ../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new return base_cls.new(cls) E TypeError: Can't instantiate abstract class Iterable with abstract methods iter_ ERROR collecting tests/test_with_across_points.py tests/test_with_across_points.py:4: in from route import RoutePointsrc/route.py:81: in class RouteManager:src/route.py:90: in RouteManager across_points: Iterable(MapPoint),../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1249: in new return _generic_new(cls.next_in_mro, cls, *args, kwds)../../../.pyenv/versions/3.5.5/lib/python3.5/typing.py:1210: in _generic_new return base_cls.new(cls)E TypeError: Can't instantiate abstract class Iterable with abstract methods iter!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!! ============================== 4 error in 0.30 seconds =============================== (tests) code/tests/BryazginAlexander on ξ‚  master via 🐍 tests

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bryazginnn/test-task-Very-Interesting/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AFc400gyUZpzOhn_2I1UmQJ6L1U-DxU8ks5tuqLTgaJpZM4TwjZW .