Hi, I applied the patch from
http://hg.jpoker.aminche.com/rev/63202dd357c6 unfortunately the tests fail with the following output: -*- mode: compilation; default-directory: "/usr/src/pokersource/poker-network/tests/" -*- Compilation started at Sun Mar 23 11:47:31 ( cd .. ; ./config.status tests/test-webservice.py ) ; ( cd ../tests ; make COVERAGE_FILES='../pokernetwork/pokerservice.py' TESTS='coverage-reset test-webservice.py coverage-report' check ) config.status: creating tests/test-webservice.py make check-TESTS make[1]: Entering directory `/usr/src/pokersource/poker-network/tests' RUNNING: ./coverage-reset PASS: coverage-reset RUNNING: ./test-webservice.py Running 19 tests. ........EEEEEEEEEEEE =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test01_ping Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 251, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 270, in raw_decode raise ValueError("No JSON object could be decoded") exceptions.ValueError: No JSON object could be decoded =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test02_login Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 254, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) exceptions.ValueError: Extra data: line 1 column 24 - line 1 column 134 (char 24 - 134) =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test03_cashIn Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 254, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) exceptions.ValueError: Extra data: line 1 column 24 - line 1 column 134 (char 24 - 134) =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test04_getPersonalInfo Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 254, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) exceptions.ValueError: Extra data: line 1 column 24 - line 1 column 134 (char 24 - 134) =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test05_cashOut Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 254, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) exceptions.ValueError: Extra data: line 1 column 24 - line 1 column 134 (char 24 - 134) =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test06_stats Traceback (most recent call last): File "./test-webservice.py", line 267, in validate self.assertEquals('PacketPokerStats', packet[0]['type']) exceptions.KeyError: 0 =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test07_tableSelect Traceback (most recent call last): File "./test-webservice.py", line 283, in validate self.assertEquals('PacketPokerTableList', packet[0]['type']) exceptions.KeyError: 0 =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.test08_polling Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 254, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) exceptions.ValueError: Extra data: line 1 column 24 - line 1 column 134 (char 24 - 134) =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.testREST01_sessions Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 251, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 270, in raw_decode raise ValueError("No JSON object could be decoded") exceptions.ValueError: No JSON object could be decoded =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.testREST02_sessions Traceback (most recent call last): File "./test-webservice.py", line 358, in json_decode return pokerservice.PokerXML.fromutf8(simplejson.JSONDecoder().decode(json), pokerservice.PokerXML.encoding) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 251, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 270, in raw_decode raise ValueError("No JSON object could be decoded") exceptions.ValueError: No JSON object could be decoded =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.testREST03_jsonp Traceback (most recent call last): Failure: twisted.web.error.Error: 500 Internal Server Error =============================================================================== [ERROR]: __main__.RESTPokerServiceTestCase.testREST03_jsonp Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/twisted/web/server.py", line 160, in process self.render(resrc) File "/usr/lib/python2.4/site-packages/twisted/web/server.py", line 167, in render body = resrc.render(self) File "../pokernetwork/pokerservice.py", line 1824, in render args = self.getArguments(request) File "../pokernetwork/pokerservice.py", line 2018, in getArguments args = simplejson.loads(data, encoding = 'latin-1') File "/var/lib/python-support/python2.4/simplejson/__init__.py", line 267, in loads return cls(encoding=encoding, **kw).decode(s) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 251, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/var/lib/python-support/python2.4/simplejson/decoder.py", line 270, in raw_decode raise ValueError("No JSON object could be decoded") exceptions.ValueError: No JSON object could be decoded ------------------------------------------------------------------------------- Ran 19 tests in 10.426s FAILED (errors=12, successes=8) FAIL: test-webservice.py RUNNING: ./coverage-report Name Stmts Exec Cover Missing ------------------------------------------------------------ ../pokernetwork/pokerservice 1330 594 44% 47-48, 59-74, 125-126, 130, 134, 146-149, 194, 219-220, 234-236, 241, 243, 251, 254, 257, 266, 284, 288-296, 299-311, 315-318, 358-359, 361, 372-373, 415, 417, 445-450, 453-472, 475-490, 493-495, 498-503, 506-508, 511-512, 515-553, 556-580, 583-594, 597-598, 601-612, 618-642, 645-651, 655-657, 660-673, 676-754, 757-810, 813-819, 822-832, 835-873, 879-894, 897-920, 923-931, 941-953, 984-1000, 1004-1020, 1029, 1036, 1046, 1052-1053, 1069-1070, 1089-1091, 1109-1110, 1118-1139, 1145-1238, 1241-1253, 1257-1272, 1277-1288, 1291-1302, 1306-1322, 1325-1336, 1339-1375, 1378-1404, 1407-1423, 1426-1463, 1466-1475, 1489-1494, 1524-1544, 1547-1551, 1558-1559, 1572, 1589, 1591-1592, 1606-1616, 1619-1623, 1631-1632, 1647, 1655, 1677-1690, 1706, 1711, 1719-1722, 1725-1728, 1742, 1746, 1809, 1822, 1849-1850, 1907-1909, 1919, 1928-1934, 1940, 1943, 1951, 1992-2011, 2026, 2036-2048, 2051-2055 PASS: coverage-report =================== 1 of 3 tests failed =================== make[1]: *** [check-TESTS] Error 1 make[1]: Leaving directory `/usr/src/pokersource/poker-network/tests' make: *** [check-am] Error 2 Compilation exited abnormally with code 2 at Sun Mar 23 11:47:46 _______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
