Commit Graph

185 Commits

Author SHA1 Message Date
Jeppe Klitgaard
20e7c70acf Implemented tests for the Float datatype.
This required the implementation of a new method on BaseDatatypeTester.

dynamic_assert_equal is overridden by floating point datatypes, and
instead uses TestCase.assertAlmostEqual.
2015-04-16 18:49:23 +02:00
Jeppe Klitgaard
cc184f3e4d Added tests for LongLong and UnsignedLongLong.
Implemented compatibility layer for the long type (has been removed in
py3)

Added test for long-type compat.
2015-04-16 17:05:44 +02:00
Jeppe Klitgaard
474aa5858a Merge remote-tracking branch 'origin/six' into new_types 2015-04-16 16:52:13 +02:00
Jeppe Klitgaard
ab4d78dc53 Started using six 2015-04-16 16:43:14 +02:00
Jeppe Klitgaard
4e6f223a7d Fixed 3 of the VALID_VALUES on the
UnsignedIntegerTest not being bytes.

Added Long and UnsignedLong tests.
2015-04-16 15:59:18 +02:00
Jeppe Klitgaard
5eddb67489 Removed non-empty string deserialization test, as
strings and bytes are the same on python2.

Fixed a non PEP8-compliant space.

Added tests for Integer and UnsignedInteger datatypes.
2015-04-16 15:49:43 +02:00
Jeppe Klitgaard
83a2fdce00 Merge branch 'dev' into new_types 2015-04-16 09:20:05 +02:00
Jeppe Klitgaard
af84a864c6 Merge branch 'master' into dev 2015-04-16 09:19:09 +02:00
Jeppe Klitgaard
89a4368c1e Added tests for compat.py 2015-04-16 09:12:26 +02:00
Jeppe Klitgaard
a31f1c543f More datatype abstraction:
* NumberDatatype
* StringDatatype

_raise_serialization_value_error_data is now a classmethod instead of a classmethod.

Tests for MIN and MAX number values of NumberDatatypes have been made more abstract.

TEST_DATA_* has been removed from variable names. Sometimes it can get a little too rediculous with these var-names, don't you think?
2015-04-16 09:02:54 +02:00
Jeppe Klitgaard
9202c4399b Update README.rst
Travis-CI status image is now targeted at the master branch in order to prevent an ugly "build failing" image, when the build fails on development branches.
2015-04-15 22:09:42 +02:00
Jeppe Klitgaard
73b990cc81 Added DISALLOWED_SERIALIZATION_TYPES, making it easier to cherrypick which types should be allowed. This was done to handle bool being a subclass of int 2015-04-14 20:06:53 +02:00
Jeppe Klitgaard
bac87695ff Implemented some of the datatypes and some tests for them. 2015-04-14 19:49:11 +02:00
Jeppe Klitgaard
5667cf9700 Merge branch 'new_types' of github.com:ammaraskar/pyCraft into new_types 2015-04-14 19:45:51 +02:00
Jeppe Klitgaard
8ca5c7f35f Abstraction in exceptions tests 2015-04-14 19:45:15 +02:00
Jeppe Klitgaard
a589c1e61f Added exceptions for serialization and deserialization. These will come in handy later 2015-04-14 19:45:15 +02:00
Ammar Askar
a5a76a8e1c Added more tests, fixed compat.py to run on py3 as well 2015-04-12 07:26:12 +05:00
Jeppe Klitgaard
b2ccc754f4 clean now also removed __pycache__ and .pyc and -pyo 2015-04-11 20:00:16 +02:00
Jeppe Klitgaard
3e4c2ddebf Abstraction in exceptions tests 2015-04-11 18:35:26 +02:00
Jeppe Klitgaard
658c451930 Added exceptions for serialization and deserialization. These will come in handy later 2015-04-11 17:47:25 +02:00
Jeppe Klitgaard
f3ee66b0b9 We now also cover files without tests 2015-04-11 17:43:11 +02:00
Jeppe Klitgaard
6daca43748 Added tests for YggdrasilError 2015-04-07 20:16:01 +02:00
Jeppe Klitgaard
ca81f7685a Moved tests around for more logical order. Made tests for Profile object. 2015-04-07 20:07:47 +02:00
Jeppe Klitgaard
057cd499b7 Updated README.md to reflect new requirements 2015-04-07 19:08:09 +02:00
Jeppe Klitgaard
0ac27a940c Switched to using pylintrc file instead of command line options.
This was done because we have a lot of messages we want to ignore (disabled-locally, enabled-locally, etc, etc), which would take up a huge amount of messy space in tox.ini.
2015-04-06 15:47:22 +02:00
Jeppe Klitgaard
971506533c id is a reserved name, even as an attribute. We now use id_ instead 2015-04-06 15:44:51 +02:00
Jeppe Klitgaard
fde8286e7e Things look slightly more legit... 2015-04-06 15:27:42 +02:00
Jeppe Klitgaard
eef23e2023 Fixed coveralls. Jeez I'm an idiot sometimes. Often times 2015-04-06 02:35:04 +02:00
Jeppe Klitgaard
31f666f328 Fixed coveralls. Jeez I'm an idiot sometimes. Often times 2015-04-06 02:34:04 +02:00
Jeppe Klitgaard
8bf7620579 Updated coveralls, now it will run even when cover build fails 2015-04-06 02:29:55 +02:00
Jeppe Klitgaard
9f93c67fb6 pylint needed a hand to inspect compat.py 2015-04-06 02:21:50 +02:00
Jeppe Klitgaard
651357e8e8 Fixed some left-overs from the old authentication system 2015-04-06 02:13:34 +02:00
Jeppe Klitgaard
ce19872115 start.py fixed, added compat.py 2015-04-06 02:11:26 +02:00
Jeppe Klitgaard
87a1101953 New line 2015-04-06 02:06:25 +02:00
Jeppe Klitgaard
cf344fd7e5 I forgot a dash cause I'm a dumbdumb 2015-04-06 02:03:32 +02:00
Jeppe Klitgaard
59578bbbc5 flake8 test now tests more python files. 2015-04-06 01:59:08 +02:00
Jeppe Klitgaard
f631ecd8ba Retiring pylint-full.py, bye bye. 2015-04-06 01:56:50 +02:00
Jeppe Klitgaard
2a8dd11322 Removed pylintrc, its effect does not warrant its existance as of yet 2015-04-06 01:43:01 +02:00
Jeppe Klitgaard
fc6529c913 Removed verify-manifest.py - we now deal with check-manifest in tox.ini 2015-04-06 01:38:39 +02:00
Jeppe Klitgaard
70c381d9f4 pylint-full.py should now be windows compatible 2015-04-06 01:36:06 +02:00
Jeppe Klitgaard
e31bfb58f0 Now verify-manifest.py is windows-compatible again 2015-04-06 01:25:16 +02:00
Jeppe Klitgaard
c35a887e1a Spruced up verify-manifest.py 2015-04-06 00:53:23 +02:00
Jeppe Klitgaard
9a45eec450 Added pylint-full and messed a bit with tox.ini 2015-04-06 00:42:06 +02:00
Jeppe Klitgaard
902d11b8e1 Spruced up verify-manifest.py 2015-04-05 23:25:24 +02:00
Jeppe Klitgaard
fff3947b16 PEP8-friendliness, spaces instead of tabs 2015-04-05 23:13:15 +02:00
Jeppe Klitgaard
ebf5caab01 Updated README.rst, now has python versions and contact information 2015-04-05 22:32:17 +02:00
Jeppe Klitgaard
17e89f23c8 Fixed typo, explicitly stated that number was status code. 2015-04-05 22:14:38 +02:00
Jeppe Klitgaard
c8da0cb8bc Removed executable bit from verify-manifest.py 2015-04-05 22:01:09 +02:00
Ammar Askar
5d56162300 Quick little base test for connection 2015-04-03 22:04:45 +05:00
Ammar Askar
ea11461e76 Fully test the encryption package, and add a test for uncompressed packets when packet compression is enabled 2015-04-03 21:30:31 +05:00