pyCraft/minecraft/networking/packets
joodicator 7b1567c352 Improve test coverage wrt protocol versions; other fixes/improvements
Improvements to the test suite:
* List release version names and numbers in minecraft/__init__.py.
* Make some tests, which previously ran for *all* protocol versions,
  run only for release protocol versions (to improve test performance).
* Make some tests, which previously ran only for the latest protocol
  version, run for all release protocol versions (to improve coverage).
* Print each protocol version being tested to the debug log, to help
  identify sources of errors.
* Use the `nose-timer' plugin to show the run time of each test.

Fix errors revealed by increased test coverage:
* Fix: SoundEffectPacket.Pitch is not serialised correctly for early
  protocol versions.
* Fix: handleExceptionTest finishes later than necessary because
  the test overrode an exception handler used internally by
  `_FakeServerTest', causing the server thread to time out after 4s.
* Add support for multiple exception handlers in `Connection'
  (required for the above).

Improvements to data descriptors:
* Make syntax of property declarations more consistent/Pythonic.
* Factor the definition of several aliasing properties into the
  utility methods `attribute_alias' and `multi_attribute_alias',
  which construct suitable data descriptors.
* Define and use the named tuple `Direction' for (pitch, yaw) values.
2019-05-14 18:41:58 +02:00
..
clientbound Improve test coverage wrt protocol versions; other fixes/improvements 2019-05-14 18:41:58 +02:00
serverbound Update SoundEffectPacket and UseItemPacket to 1.14; misc improvements 2019-05-13 21:58:59 +02:00
__init__.py Add ClientSettingsPacket and PluginMessagePacket. 2017-08-24 05:49:32 +01:00
keep_alive_packet.py Merge branch 'master' into testing 2017-09-24 06:36:52 +01:00
packet_buffer.py fix flake error as suggested 2017-08-09 16:33:41 +01:00
packet_listener.py Add support for Minecraft 1.13 and 1.13-pre3 to pre10 (protocols 385 to 393). 2018-07-19 09:50:13 +01:00
packet.py Add support for Minecraft 18w43a to 1.14 (protocols 441 to 477) 2019-05-11 08:43:51 +02:00
plugin_message_packet.py Add support for Minecraft 1.13 and 1.13-pre3 to pre10 (protocols 385 to 393). 2018-07-19 09:50:13 +01:00