pyCraft/tests
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
..
encryption Add more encryption tests 2015-04-03 07:19:46 +05:00
__init__.py Made some tests for authentication. Still many tests to be made 2015-04-02 00:11:14 +02:00
compat.py Made some tests for authentication. Still many tests to be made 2015-04-02 00:11:14 +02:00
fake_server.py Add support for Minecraft 18w43a to 1.14 (protocols 441 to 477) 2019-05-11 08:43:51 +02:00
test_authentication.py Fixes for flake8 2019-01-04 20:12:07 -05:00
test_backward_compatible.py Add serialisation and tests for Explosion, {Multi,}BlockChange, and CombatEvent packets. 2018-05-27 13:28:01 +01:00
test_connection.py Improve test coverage wrt protocol versions; other fixes/improvements 2019-05-14 18:41:58 +02:00
test_encryption.py Fix issue #109 and add regression test. 2018-10-12 17:07:04 +01:00
test_exceptions.py Fix various problems in minecraft.authentication and its tests: 2017-03-31 12:59:43 +01:00
test_packets_with_logic.py Add support for Minecraft 18w43a to 1.14 (protocols 441 to 477) 2019-05-11 08:43:51 +02:00
test_packets.py Improve test coverage wrt protocol versions; other fixes/improvements 2019-05-14 18:41:58 +02:00
test_reactors.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
test_serialization.py Improve test coverage wrt protocol versions; other fixes/improvements 2019-05-14 18:41:58 +02:00
test_utility_types.py Fix: MutableRecord.__ne__ misspelt as '__neq__'. 2018-06-21 07:06:45 +01:00
test_version.py Add support for Minecraft pre-release 16w32a (protocol 301). 2016-08-11 10:40:50 +01:00