Ticket #253: test.txt

File test.txt, 5.6 KB (added by barra_parpg, 9 years ago)
Line 
1Test CarryableContainer weight calculation ... ok
2Test the help console command ... ERROR
3Test the python console command ... ERROR
4Test an invalid console command ... ERROR
5testBulk (test_container.TestContainer) ... ok
6Test Container mixin Place/Take functions ... ok
7testScripting (test_container.TestContainer) ... ok
8Test the WoodenCrate creation ... ok
9Test the WoodenCrate lockability ... ok
10Runs the validator on all dialogue files available. ... ERROR
11Test basic dialogue interaction ... ERROR
12Test GameObject coordinates manipulation ... ok
13Test GameObject textual representation ... ok
14Test GameObject trueAttr functionality ... ok
15testFind (test_inventory.TestInventory) ... ok
16Test Inventory Place/Take/Move functions ... ok
17Test Inventory items replace each other in single-item slots ... ok
18Test Living mixin die ability ... ok
19Test Lockable mixin constructor ... ok
20Test Lockable mixin locking and unlocking ... ok
21Test NPC name ... ok
22Test NPC textual representation ... ok
23Test NPC trueAttr functionality ... ok
24testWildcard (test_objects_base.TestObjectsBase) ... ok
25Test Openable mixin instantiation in closed state ... ok
26Test Openable mixin open-close functionality ... ok
27Test Openable mixin with scripting ... ok
28Test Scriptable mixin scripting abilities ... ok
29Test SingleItemContainer Place/Take functions ... ok
30Test Wearable mixin's various forms of instantiation ... ok
31
32======================================================================
33ERROR: Test the help console command
34----------------------------------------------------------------------
35Traceback (most recent call last):
36  File "tests\test_console.py", line 24, in setUp
37    self.con=Console(None)
38  File "D:\parpg\trunk\game\scripts\console.py", line 47, in __init__
39    self.world = self.app_listener.world
40AttributeError: 'NoneType' object has no attribute 'world'
41
42======================================================================
43ERROR: Test the python console command
44----------------------------------------------------------------------
45Traceback (most recent call last):
46  File "tests\test_console.py", line 24, in setUp
47    self.con=Console(None)
48  File "D:\parpg\trunk\game\scripts\console.py", line 47, in __init__
49    self.world = self.app_listener.world
50AttributeError: 'NoneType' object has no attribute 'world'
51
52======================================================================
53ERROR: Test an invalid console command
54----------------------------------------------------------------------
55Traceback (most recent call last):
56  File "tests\test_console.py", line 24, in setUp
57    self.con=Console(None)
58  File "D:\parpg\trunk\game\scripts\console.py", line 47, in __init__
59    self.world = self.app_listener.world
60AttributeError: 'NoneType' object has no attribute 'world'
61
62======================================================================
63ERROR: Runs the validator on all dialogue files available.
64----------------------------------------------------------------------
65Traceback (most recent call last):
66  File "tests\test_dialogue.py", line 169, in testAllDialogueFiles
67    assert(val.validateDialogueFromFile(fname,"."))
68  File "D:\parpg\trunk\game\scripts\dialoguevalidator.py", line 71, in validateDialogueFromFile
69    tree = yaml.load(file(file_name))
70  File "C:\Python26\lib\site-packages\yaml\__init__.py", line 58, in load
71    return loader.get_single_data()
72  File "C:\Python26\lib\site-packages\yaml\constructor.py", line 42, in get_single_data
73    node = self.get_single_node()
74  File "C:\Python26\lib\site-packages\yaml\composer.py", line 36, in get_single_node
75    document = self.compose_document()
76  File "C:\Python26\lib\site-packages\yaml\composer.py", line 55, in compose_document
77    node = self.compose_node(None, None)
78  File "C:\Python26\lib\site-packages\yaml\composer.py", line 84, in compose_node
79    node = self.compose_mapping_node(anchor)
80  File "C:\Python26\lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node
81    item_value = self.compose_node(node, item_key)
82  File "C:\Python26\lib\site-packages\yaml\composer.py", line 64, in compose_node
83    if self.check_event(AliasEvent):
84  File "C:\Python26\lib\site-packages\yaml\parser.py", line 93, in check_event
85    self.current_event = self.state()
86  File "C:\Python26\lib\site-packages\yaml\parser.py", line 444, in parse_block_mapping_value
87    if not self.check_token(KeyToken, ValueToken, BlockEndToken):
88  File "C:\Python26\lib\site-packages\yaml\scanner.py", line 115, in check_token
89    while self.need_more_tokens():
90  File "C:\Python26\lib\site-packages\yaml\scanner.py", line 149, in need_more_tokens
91    self.stale_possible_simple_keys()
92  File "C:\Python26\lib\site-packages\yaml\scanner.py", line 289, in stale_possible_simple_keys
93    "could not found expected ':'", self.get_mark())
94ScannerError: while scanning a simple key
95  in ".\dialogue\dialogue.license", line 2, column 1
96could not found expected ':'
97  in ".\dialogue\dialogue.license", line 4, column 1
98
99======================================================================
100ERROR: Test basic dialogue interaction
101----------------------------------------------------------------------
102Traceback (most recent call last):
103  File "tests\test_dialogue.py", line 110, in testSimple
104    self.dialogue.run()
105  File "D:\parpg\trunk\game\scripts\dialogue.py", line 68, in run
106    npc_avatar_cb(self.tree['AVATAR'])
107TypeError: npcAvatarCb() takes exactly 2 arguments (1 given)
108
109----------------------------------------------------------------------
110Ran 30 tests in 0.297s
111
112FAILED (errors=5)
113{0: <Generic object:9>}
114{0: <Generic object:9>, 1: <Generic object:10>}