Commit Graph

174 Commits

Author SHA1 Message Date
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
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
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
Ammar Askar
89f788f3ea Remove unused test environment 2015-04-03 09:01:07 +05:00
Ammar Askar
1249f99a1e Packet tests 2015-04-03 08:51:53 +05:00
Ammar Askar
08e126188a Add a serialization test 2015-04-03 08:06:20 +05:00
Ammar Askar
a073ee35d8 Add more encryption tests 2015-04-03 07:19:46 +05:00
Ammar Askar
2afb43ef27 read the docs badge because why not 2015-04-03 04:58:26 +05:00
Ammar Askar
d0f6120043 Oops, ignore pylint warnings not errors 2015-04-03 04:29:40 +05:00
Ammar Askar
398050c248 Only execute coveralls on the cover build 2015-04-03 04:15:16 +05:00
Ammar Askar
1e3437d638 Test coverage in readme 2015-04-03 04:02:06 +05:00
Ammar Askar
4dfdb6282b coveralls support 2015-04-03 03:53:13 +05:00
Ammar Askar
515b0b3719 Add travis status to README 2015-04-03 03:31:58 +05:00
Ammar Askar
e966237d54 Add travis support 2015-04-03 03:24:01 +05:00