Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
- Install the buildx component to build images with BuildKit:
- https://docs.docker.com/go/buildx/
- Sending build context to Docker daemon 2.83MB
- Step 1/16 : FROM gcc:11.3 as build
- ---> 7580976b875b
- Step 2/16 : RUN apt update && apt install -y python3-pip cmake && pip3 install conan==1.*
- ---> Using cache
- ---> d70d944f060b
- Step 3/16 : COPY conanfile.txt /app/
- ---> Using cache
- ---> d9018e9b1dee
- Step 4/16 : RUN mkdir /app/build && cd /app/build && conan install .. --build=missing -s compiler.libcxx=libstdc++11 -s build_type=Release
- ---> Using cache
- ---> e824e5122ceb
- Step 5/16 : COPY ./src /app/src
- ---> Using cache
- ---> 1b3282e7917b
- Step 6/16 : COPY ./data /app/data
- ---> Using cache
- ---> b4553a326d65
- Step 7/16 : COPY ./static /app/static
- ---> Using cache
- ---> 23cf05f3ffc6
- Step 8/16 : COPY CMakeLists.txt /app/
- ---> Using cache
- ---> b23e40d7f88d
- Step 9/16 : RUN cd /app/build && cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
- ---> Using cache
- ---> f867a6637c6d
- Step 10/16 : FROM ubuntu:22.04 as run
- ---> 97271d29cb79
- Step 11/16 : RUN groupadd -r www && useradd -r -g www www
- ---> Using cache
- ---> 44a709dfb75d
- Step 12/16 : USER www
- ---> Using cache
- ---> 423a071f30fc
- Step 13/16 : COPY --from=build /app/build/bin/game_server /app/
- ---> Using cache
- ---> fe0065f8f4bb
- Step 14/16 : COPY ./data /app/data
- ---> Using cache
- ---> fbd1aca14146
- Step 15/16 : COPY ./static /app/static
- ---> Using cache
- ---> 3034d8c5d891
- Step 16/16 : ENTRYPOINT ["/app/game_server", "/app/data/config.json", "/app/static"]
- ---> Using cache
- ---> 8b07699796b7
- Successfully built 8b07699796b7
- Successfully tagged time_control:latest
- ./time_control/run.sh: line 15: /__w/cppbackend/cppbackend/cpp-backend-tests-practicum/scripts/sprint2/time_control/../../../..//.venv/bin/activate: No such file or directory
- ============================= test session starts ==============================
- platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0
- rootdir: /__w/cppbackend/cppbackend/cpp-backend-tests-practicum
- plugins: quickcheck-0.9.0, parallel-0.1.1, xprocess-0.20.0
- collected 105 items
- pytest-parallel: 2 workers (processes), 1 test per worker (thread)
- ........................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
- =================================== FAILURES ===================================
- _______________________________ test_match_roads _______________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a9ae0>
- game_server = <game_server.GameServer object at 0x7f1cee7aa560>
- def test_match_roads(docker_server, game_server):
- py_maps = game_server.get_maps()
- > server_maps = docker_server.get_maps()
- ../../tests/test_s02_time_control.py:123:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/cpp_server_api.py:236: in get_maps
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [200]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- CppServer.assert_fields('Response headers',
- ['content-type', 'cache-control', 'content-length'],
- res.headers.keys())
- if res.headers['content-type'] != 'application/json':
- raise UnexpectedData('Content-type', 'application/json', res.headers['content-type'])
- if res.headers['cache-control'] != 'no-cache':
- > raise UnexpectedData('Cache-control', 'no-cache', res.headers['cache-control'])
- E cpp_server_api.UnexpectedData: <unprintable UnexpectedData object>
- ../../tests/cpp_server_api.py:353: UnexpectedData
- _________________________ test_turn_one_player[map1-L] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee637970>
- game_server = <game_server.GameServer object at 0x7f1cee636a70>, direction = 'L'
- map_id = 'map1'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[map1-R] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cef9d2a40>
- game_server = <game_server.GameServer object at 0x7f1cee7aa920>, direction = 'R'
- map_id = 'map1'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[map1-U] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b5240>
- game_server = <game_server.GameServer object at 0x7f1cee6b4970>, direction = 'U'
- map_id = 'map1'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[map1-D] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a2440>
- game_server = <game_server.GameServer object at 0x7f1cee7a2ce0>, direction = 'D'
- map_id = 'map1'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[town-R] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee783250>
- game_server = <game_server.GameServer object at 0x7f1cee7835b0>, direction = 'R'
- map_id = 'town'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[town-L] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7abe80>
- game_server = <game_server.GameServer object at 0x7f1cee7a1990>, direction = 'L'
- map_id = 'town'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[town-U] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b58a0>
- game_server = <game_server.GameServer object at 0x7f1cee6b5b40>, direction = 'U'
- map_id = 'town'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _________________________ test_turn_one_player[town-D] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee634790>
- game_server = <game_server.GameServer object at 0x7f1cee6356f0>, direction = 'D'
- map_id = 'town'
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_turn_one_player(docker_server, game_server, direction, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:137:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ________________________ test_small_move_one_player[R] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee636020>
- game_server = <game_server.GameServer object at 0x7f1cee634e50>, direction = 'R'
- ticks = 140, map_id = 'town'
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_small_move_one_player(docker_server, game_server, direction, ticks=140, map_id='town'):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:147:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ________________________ test_small_move_one_player[U] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6912d0>
- game_server = <game_server.GameServer object at 0x7f1cee6924a0>, direction = 'U'
- ticks = 140, map_id = 'town'
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_small_move_one_player(docker_server, game_server, direction, ticks=140, map_id='town'):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:147:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ________________________ test_small_move_one_player[D] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee782a70>
- game_server = <game_server.GameServer object at 0x7f1cee782830>, direction = 'D'
- ticks = 140, map_id = 'town'
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_small_move_one_player(docker_server, game_server, direction, ticks=140, map_id='town'):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:147:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-48289-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a32e0>
- game_server = <game_server.GameServer object at 0x7f1cee7a1ae0>, direction = 'R'
- ticks = 48289, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ________________________ test_small_move_one_player[L] _________________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b3100>
- game_server = <game_server.GameServer object at 0x7f1cee6b31c0>, direction = 'L'
- ticks = 140, map_id = 'town'
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_small_move_one_player(docker_server, game_server, direction, ticks=140, map_id='town'):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:147:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-48289-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced55bfa0>
- game_server = <game_server.GameServer object at 0x7f1ced559510>, direction = 'L'
- ticks = 48289, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-48289-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7804f0>
- game_server = <game_server.GameServer object at 0x7f1cee780df0>, direction = 'U'
- ticks = 48289, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-59164-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee783700>
- game_server = <game_server.GameServer object at 0x7f1cee7824d0>, direction = 'R'
- ticks = 59164, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-59164-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced511c00>
- game_server = <game_server.GameServer object at 0x7f1ced5127d0>, direction = 'L'
- ticks = 59164, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-59164-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced511090>
- game_server = <game_server.GameServer object at 0x7f1cee6a85b0>, direction = 'U'
- ticks = 59164, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-59164-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6a8b80>
- game_server = <game_server.GameServer object at 0x7f1cee6a9840>, direction = 'D'
- ticks = 59164, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-48289-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5c22c0>
- game_server = <game_server.GameServer object at 0x7f1ced5c2140>, direction = 'D'
- ticks = 48289, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-60591-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced55bfa0>
- game_server = <game_server.GameServer object at 0x7f1ced55a290>, direction = 'L'
- ticks = 60591, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-60591-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a20b0>
- game_server = <game_server.GameServer object at 0x7f1cee7a0d90>, direction = 'U'
- ticks = 60591, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-60591-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee73d480>
- game_server = <game_server.GameServer object at 0x7f1cee73f9a0>, direction = 'D'
- ticks = 60591, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-48289-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee73e1d0>
- game_server = <game_server.GameServer object at 0x7f1cee77f640>, direction = 'R'
- ticks = 48289, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[map1-60591-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4f0ac0>
- game_server = <game_server.GameServer object at 0x7f1ced4f0f70>, direction = 'R'
- ticks = 60591, map_id = 'map1'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-48289-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced55b0d0>
- game_server = <game_server.GameServer object at 0x7f1ced55b3a0>, direction = 'L'
- ticks = 48289, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-48289-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced512c20>
- game_server = <game_server.GameServer object at 0x7f1ced510b20>, direction = 'U'
- ticks = 48289, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-48289-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a23e0>
- game_server = <game_server.GameServer object at 0x7f1cee7a0220>, direction = 'D'
- ticks = 48289, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-59164-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7808e0>
- game_server = <game_server.GameServer object at 0x7f1cee780130>, direction = 'R'
- ticks = 59164, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-59164-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6353c0>
- game_server = <game_server.GameServer object at 0x7f1cee6361d0>, direction = 'L'
- ticks = 59164, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-59164-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4f2830>
- game_server = <game_server.GameServer object at 0x7f1ced4f3a30>, direction = 'U'
- ticks = 59164, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-59164-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4fd870>
- game_server = <game_server.GameServer object at 0x7f1ced4ff970>, direction = 'D'
- ticks = 59164, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-60591-R] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced513c40>
- game_server = <game_server.GameServer object at 0x7f1ced510670>, direction = 'R'
- ticks = 60591, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-60591-L] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6378e0>
- game_server = <game_server.GameServer object at 0x7f1cee634190>, direction = 'L'
- ticks = 60591, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-60591-U] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5609a0>
- game_server = <game_server.GameServer object at 0x7f1ced5621d0>, direction = 'U'
- ticks = 60591, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _____________________ test_move_sequence_one_player[map1] ______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a2680>
- game_server = <game_server.GameServer object at 0x7f1cee7a1c60>, map_id = 'map1'
- def test_move_sequence_one_player(docker_server, game_server, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- random.seed(345612) # Заглушка, чтобы не ловить баги. Существует, пока не искоренили баги из решения
- for i in range(0, 10):
- direction = Direction.random_str()
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:180:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _____________________ test_move_sequence_one_player[town] ______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3e42e0>
- game_server = <game_server.GameServer object at 0x7f1ced3e7790>, map_id = 'town'
- def test_move_sequence_one_player(docker_server, game_server, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- random.seed(345612) # Заглушка, чтобы не ловить баги. Существует, пока не искоренили баги из решения
- for i in range(0, 10):
- direction = Direction.random_str()
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:180:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-R-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced54fee0>
- game_server = <game_server.GameServer object at 0x7f1ced54ee90>
- direction_1 = 'R', direction_2 = 'R', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_big_move_one_player[town-60591-D] ____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b5600>
- game_server = <game_server.GameServer object at 0x7f1cee6b4fd0>, direction = 'D'
- ticks = 60591, map_id = 'town'
- @pytest.mark.randomize(min_num=1000, max_num=100000, ncalls=3)
- @pytest.mark.parametrize('direction', ['R', 'L', 'U', 'D'])
- def test_big_move_one_player(docker_server, game_server, direction, ticks: int, map_id):
- token, _ = add_player(docker_server, game_server, map_id, 'player')
- > move_players(docker_server, game_server, token, direction)
- ../../tests/test_s02_time_control.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-R-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee637af0>
- game_server = <game_server.GameServer object at 0x7f1cee635e40>
- direction_1 = 'L', direction_2 = 'R', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-R-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3e5990>
- game_server = <game_server.GameServer object at 0x7f1ced3e7d00>
- direction_1 = 'D', direction_2 = 'R', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-R-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4fd360>
- game_server = <game_server.GameServer object at 0x7f1ced5a5ff0>
- direction_1 = 'U', direction_2 = 'R', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-L-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b5a20>
- game_server = <game_server.GameServer object at 0x7f1cee6b55a0>
- direction_1 = 'L', direction_2 = 'L', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-L-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced41db70>
- game_server = <game_server.GameServer object at 0x7f1ced41e290>
- direction_1 = 'U', direction_2 = 'L', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-L-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3e2ec0>
- game_server = <game_server.GameServer object at 0x7f1ced3e13f0>
- direction_1 = 'R', direction_2 = 'L', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-L-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee73ee30>
- game_server = <game_server.GameServer object at 0x7f1cee73e650>
- direction_1 = 'D', direction_2 = 'L', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-U-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3e4820>
- game_server = <game_server.GameServer object at 0x7f1ced3e6020>
- direction_1 = 'R', direction_2 = 'U', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-U-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced506920>
- game_server = <game_server.GameServer object at 0x7f1ced507a60>
- direction_1 = 'L', direction_2 = 'U', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-U-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced54f6a0>
- game_server = <game_server.GameServer object at 0x7f1ced54cd60>
- direction_1 = 'U', direction_2 = 'U', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-U-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b71c0>
- game_server = <game_server.GameServer object at 0x7f1cee6b5600>
- direction_1 = 'D', direction_2 = 'U', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-D-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a0100>
- game_server = <game_server.GameServer object at 0x7f1cee7a2fb0>
- direction_1 = 'R', direction_2 = 'D', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-D-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee782290>
- game_server = <game_server.GameServer object at 0x7f1cee7817e0>
- direction_1 = 'L', direction_2 = 'D', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-D-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3e0a60>
- game_server = <game_server.GameServer object at 0x7f1ced3e1e10>
- direction_1 = 'U', direction_2 = 'D', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[map1-D-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a2440>
- game_server = <game_server.GameServer object at 0x7f1cee7a2f20>
- direction_1 = 'D', direction_2 = 'D', map_id = 'map1'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-R-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee73f790>
- game_server = <game_server.GameServer object at 0x7f1cee73ebc0>
- direction_1 = 'R', direction_2 = 'R', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-R-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5a6920>
- game_server = <game_server.GameServer object at 0x7f1ced5a74c0>
- direction_1 = 'L', direction_2 = 'R', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-R-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced561ed0>
- game_server = <game_server.GameServer object at 0x7f1ced563d30>
- direction_1 = 'U', direction_2 = 'R', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-R-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7aa500>
- game_server = <game_server.GameServer object at 0x7f1cee7a8250>
- direction_1 = 'D', direction_2 = 'R', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-L-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b3640>
- game_server = <game_server.GameServer object at 0x7f1cee6b3dc0>
- direction_1 = 'R', direction_2 = 'L', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-L-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4f17e0>
- game_server = <game_server.GameServer object at 0x7f1ced4f1960>
- direction_1 = 'U', direction_2 = 'L', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-L-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced460b20>
- game_server = <game_server.GameServer object at 0x7f1ced463d90>
- direction_1 = 'L', direction_2 = 'L', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-L-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced562290>
- game_server = <game_server.GameServer object at 0x7f1ced5c1000>
- direction_1 = 'D', direction_2 = 'L', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-U-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee634340>
- game_server = <game_server.GameServer object at 0x7f1cee636e30>
- direction_1 = 'L', direction_2 = 'U', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-U-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee636e30>
- game_server = <game_server.GameServer object at 0x7f1cee637040>
- direction_1 = 'R', direction_2 = 'U', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-U-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7a8dc0>
- game_server = <game_server.GameServer object at 0x7f1cee7aa5c0>
- direction_1 = 'D', direction_2 = 'U', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-U-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced511570>
- game_server = <game_server.GameServer object at 0x7f1ced5108e0>
- direction_1 = 'U', direction_2 = 'U', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-D-R] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4c2a10>
- game_server = <game_server.GameServer object at 0x7f1ced4c2b60>
- direction_1 = 'R', direction_2 = 'D', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-D-L] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee7820b0>
- game_server = <game_server.GameServer object at 0x7f1cee7827d0>
- direction_1 = 'L', direction_2 = 'D', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-D-U] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5043d0>
- game_server = <game_server.GameServer object at 0x7f1ced506050>
- direction_1 = 'U', direction_2 = 'D', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- _______________________ test_two_players_turns[town-D-D] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6a93f0>
- game_server = <game_server.GameServer object at 0x7f1cee6aa1a0>
- direction_1 = 'D', direction_2 = 'D', map_id = 'town'
- @pytest.mark.parametrize('direction_1', ['R', 'L', 'U', 'D'])
- @pytest.mark.parametrize('direction_2', ['R', 'L', 'U', 'D'])
- def test_two_players_turns(docker_server, game_server, direction_1, direction_2, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- > move_players(docker_server, game_server, token_1, direction_1)
- ../../tests/test_s02_time_control.py:193:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ../../tests/test_s02_time_control.py:32: in move_players
- server.move(token, direction)
- ../../tests/cpp_server_api.py:312: in move
- self.validate_response(res)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- res = <Response [400]>
- @staticmethod
- def validate_response(res: requests.Response):
- if res.status_code != 200:
- > raise BadRequest('Status code isn\'t OK', {'status code': res.status_code, 'response': res.content})
- E cpp_server_api.BadRequest: <unprintable BadRequest object>
- ../../tests/cpp_server_api.py:343: BadRequest
- ____________________ test_two_players_small_move[map1-151] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee635510>
- game_server = <game_server.GameServer object at 0x7f1cee634790>, map_id = 'map1'
- ticks = 151
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_small_move[map1-19] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced3ec460>
- game_server = <game_server.GameServer object at 0x7f1ced3ed720>, map_id = 'map1'
- ticks = 19
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_small_move[map1-29] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced4c25f0>
- game_server = <game_server.GameServer object at 0x7f1ced4c3be0>, map_id = 'map1'
- ticks = 29
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- ____________________ test_two_players_small_move[town-151] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee77f040>
- game_server = <game_server.GameServer object at 0x7f1cee73eec0>, map_id = 'town'
- ticks = 151
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_small_move[town-19] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee6b4640>
- game_server = <game_server.GameServer object at 0x7f1cee6b4790>, map_id = 'town'
- ticks = 19
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_small_move[town-29] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced486470>
- game_server = <game_server.GameServer object at 0x7f1ced487be0>, map_id = 'town'
- ticks = 29
- @pytest.mark.randomize(min_num=0, max_num=250, ncalls=3)
- def test_two_players_small_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:210:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[map1-2196] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5c2b60>
- game_server = <game_server.GameServer object at 0x7f1ced5c1480>, map_id = 'map1'
- ticks = 2196
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[map1-8621] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5c1ff0>
- game_server = <game_server.GameServer object at 0x7f1ced5c1ba0>, map_id = 'map1'
- ticks = 8621
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[map1-8866] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced596590>
- game_server = <game_server.GameServer object at 0x7f1ced594a90>, map_id = 'map1'
- ticks = 8866
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[town-2196] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced486fe0>
- game_server = <game_server.GameServer object at 0x7f1ced484610>, map_id = 'town'
- ticks = 2196
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[town-8621] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced507af0>
- game_server = <game_server.GameServer object at 0x7f1cef3ce2c0>, map_id = 'town'
- ticks = 8621
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _______________________ test_two_players_sequences[map1] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1cee73d750>
- game_server = <game_server.GameServer object at 0x7f1cee73e7a0>, map_id = 'map1'
- def test_two_players_sequences(docker_server, game_server, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:262:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -4.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-4.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-4.0) = Vector2D(*[0.0, -4.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _______________________ test_two_players_sequences[town] _______________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5a73a0>
- game_server = <game_server.GameServer object at 0x7f1ced5a4250>, map_id = 'town'
- def test_two_players_sequences(docker_server, game_server, map_id):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:262:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- _____________________ test_two_players_big_move[town-8866] _____________________
- docker_server = <cpp_server_api.CppServer object at 0x7f1ced5c1150>
- game_server = <game_server.GameServer object at 0x7f1ced5c0a00>, map_id = 'town'
- ticks = 8866
- @pytest.mark.randomize(min_num=250, max_num=10000, ncalls=3)
- def test_two_players_big_move(docker_server, game_server, map_id, ticks: int):
- token_1, _ = add_player(docker_server, game_server, map_id, 'Player 1')
- token_2, _ = add_player(docker_server, game_server, map_id, 'Player 2')
- state_1, py_state_1 = get_states(docker_server, game_server, token_1)
- state_2, py_state_2 = get_states(docker_server, game_server, token_2)
- > compare_states(state_1, py_state_1)
- ../../tests/test_s02_time_control.py:237:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- cpp_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, -3.0]}}}
- py_state = {'players': {'0': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}, '1': {'dir': 'U', 'pos': [0.0, 0.0], 'speed': [0.0, 0.0]}}}
- def compare_states(cpp_state: dict, py_state: dict):
- cpp_players: dict = cpp_state['players']
- py_players: dict = py_state['players']
- assert cpp_players.keys() == py_players.keys()
- for player_id in cpp_players:
- cpp_player: dict = cpp_players[player_id]
- py_player: dict = py_players[player_id]
- assert Point(*cpp_player['pos']) == Point(*py_player['pos'])
- > assert Vector2D(*cpp_player['speed']) == Vector2D(*py_player['speed'])
- E assert Vector2D(x=0.0, y=-3.0) == Vector2D(x=0.0, y=0.0)
- E + where Vector2D(x=0.0, y=-3.0) = Vector2D(*[0.0, -3.0])
- E + and Vector2D(x=0.0, y=0.0) = Vector2D(*[0.0, 0.0])
- ../../tests/test_s02_time_control.py:58: AssertionError
- =============================== warnings summary ===============================
- ../../../../../../usr/local/lib/python3.10/dist-packages/pytest_quickcheck/plugin.py:112
- ../../../../../../usr/local/lib/python3.10/dist-packages/pytest_quickcheck/plugin.py:112
- ../../../../../../usr/local/lib/python3.10/dist-packages/pytest_quickcheck/plugin.py:112
- ../../../../../../usr/local/lib/python3.10/dist-packages/pytest_quickcheck/plugin.py:112
- /usr/local/lib/python3.10/dist-packages/pytest_quickcheck/plugin.py:112: PytestDeprecationWarning: A private pytest class or function was used.
- _randomize = Mark("randomize", args, {})
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- ------- generated xml file: /__w/cppbackend/cppbackend/time_control.xml --------
- =========================== short test summary info ============================
- FAILED ../../tests/test_s02_time_control.py::test_match_roads - cpp_server_ap...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[map1-L] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[map1-R] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[map1-U] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[map1-D] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[town-R] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[town-L] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[town-U] - c...
- FAILED ../../tests/test_s02_time_control.py::test_turn_one_player[town-D] - c...
- FAILED ../../tests/test_s02_time_control.py::test_small_move_one_player[R] - ...
- FAILED ../../tests/test_s02_time_control.py::test_small_move_one_player[U] - ...
- FAILED ../../tests/test_s02_time_control.py::test_small_move_one_player[D] - ...
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-48289-R]
- FAILED ../../tests/test_s02_time_control.py::test_small_move_one_player[L] - ...
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-48289-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-48289-U]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-59164-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-59164-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-59164-U]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-59164-D]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-48289-D]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-60591-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-60591-U]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-60591-D]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-48289-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[map1-60591-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-48289-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-48289-U]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-48289-D]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-59164-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-59164-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-59164-U]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-59164-D]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-60591-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-60591-L]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-60591-U]
- FAILED ../../tests/test_s02_time_control.py::test_move_sequence_one_player[map1]
- FAILED ../../tests/test_s02_time_control.py::test_move_sequence_one_player[town]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-R-R]
- FAILED ../../tests/test_s02_time_control.py::test_big_move_one_player[town-60591-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-R-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-R-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-R-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-L-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-L-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-L-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-L-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-U-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-U-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-U-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-U-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-D-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-D-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-D-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[map1-D-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-R-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-R-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-R-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-R-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-L-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-L-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-L-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-L-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-U-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-U-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-U-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-U-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-D-R]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-D-L]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-D-U]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_turns[town-D-D]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[map1-151]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[map1-19]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[map1-29]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[town-151]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[town-19]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_small_move[town-29]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[map1-2196]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[map1-8621]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[map1-8866]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[town-2196]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[town-8621]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_sequences[map1]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_sequences[town]
- FAILED ../../tests/test_s02_time_control.py::test_two_players_big_move[town-8866]
- ================== 85 failed, 20 passed, 4 warnings in 33.69s ==================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement