Ignore:
Timestamp:
02/21/11 22:51:42 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • renamed scripts package to parpg
  • renamed parpg module to application
  • removed packaging and other related files (kept locally for reference, will reintroduce similar scripts to resolve bug #275
  • updated all import statements to respect changes above
Location:
branches/active/character_customization/game/tests
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/tests/test_carryable_container.py

    r653 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject, Carryable 
    20 from scripts.objects.composed import CarryableContainer 
     19from parpg.objects.base import GameObject, Carryable 
     20from parpg.objects.composed import CarryableContainer 
    2121 
    2222class  TestCarryableContainer(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_console.py

    r584 r736  
    1818 
    1919import unittest 
    20 from scripts.console import Console 
     20from parpg.console import Console 
    2121 
    2222class test_console(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_container.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject, Container, Scriptable, Carryable 
     19from parpg.objects.base import GameObject, Container, Scriptable, Carryable 
    2020 
    2121class  TestContainer(unittest.TestCase): 
     
    7979 
    8080    def testScripting(self): 
    81         container = self.ScriptableContainer(5,scripts={'onPlaceItem':(self.onPlaceItem,(),{}),'onTakeItem':(self.onTakeItem,(),{})}) 
     81        container = self.ScriptableContainer(5,parpg={'onPlaceItem':(self.onPlaceItem,(),{}),'onTakeItem':(self.onTakeItem,(),{})}) 
    8282        self.assertFalse(self.ranOnPlaceItem) 
    8383        self.assertFalse(self.ranOnTakeItem) 
  • branches/active/character_customization/game/tests/test_crate.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.containers import WoodenCrate 
     19from parpg.objects.containers import WoodenCrate 
    2020 
    2121class TestWoodenCrate(unittest.TestCase): 
     
    3535        self.assertEqual(self.crate.is_open, True) 
    3636        self.assertEqual(self.crate.locked, False) 
    37         self.assertEqual(self.crate.scripts, {}) 
     37        self.assertEqual(self.crate.parpg, {}) 
    3838 
    3939        self.assertEqual(self.crate2.ID, 'crate02') 
  • branches/active/character_customization/game/tests/test_dialogueprocessor.py

    r707 r736  
    2222    import unittest 
    2323 
    24 from scripts.common.utils import dedent_chomp 
    25 from scripts.dialogueprocessor import DialogueProcessor 
     24from parpg.common.utils import dedent_chomp 
     25from parpg.dialogueprocessor import DialogueProcessor 
    2626# NOTE Technomage 2010-12-08: Using the dialogue data structures might be a 
    2727#    violation of unit test isolation, but ultimately they are just simple 
    2828#    data structures that don't require much testing of their own so I feel 
    2929#    that it isn't a mistake to use them. 
    30 from scripts.dialogue import (Dialogue, DialogueSection, DialogueResponse, 
     30from parpg.dialogue import (Dialogue, DialogueSection, DialogueResponse, 
    3131    DialogueGreeting) 
    3232 
  • branches/active/character_customization/game/tests/test_game_object.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject 
     19from parpg.objects.base import GameObject 
    2020 
    2121class TestGameObject(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_inventory.py

    r653 r736  
    1717 
    1818import unittest 
    19 from scripts.inventory import Inventory 
    20 from scripts.objects.base import GameObject, Carryable 
     19from parpg.inventory import Inventory 
     20from parpg.objects.base import GameObject, Carryable 
    2121 
    2222class  TestInventory(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_living.py

    r611 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import Living 
     19from parpg.objects.base import Living 
    2020 
    2121class  TestLiving(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_lockable.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import Lockable, GameObject 
     19from parpg.objects.base import Lockable, GameObject 
    2020 
    2121 
  • branches/active/character_customization/game/tests/test_npc.py

    r653 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.actors import NonPlayerCharacter 
     19from parpg.objects.actors import NonPlayerCharacter 
    2020 
    2121class MockLayer(object): 
  • branches/active/character_customization/game/tests/test_objects_base.py

    r611 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject, Lockable, Container, Living, \ 
     19from parpg.objects.base import GameObject, Lockable, Container, Living, \ 
    2020                            Scriptable, CharStats, Wearable, Usable, Weapon, \ 
    2121                            Destructable, Trapable, Carryable 
  • branches/active/character_customization/game/tests/test_openable.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import Scriptable, Openable, GameObject 
     19from parpg.objects.base import Scriptable, Openable, GameObject 
    2020 
    2121 
     
    6666        """ Test Openable mixin with scripting""" 
    6767 
    68         self.openable = self.OpenableScriptable(3, scripts={'onOpen':(self.onOpen,(),{}),'onClose':(self.onClose,(),{})}) 
     68        self.openable = self.OpenableScriptable(3, parpg={'onOpen':(self.onOpen,(),{}),'onClose':(self.onClose,(),{})}) 
    6969        self.assertEqual(self.ran_on_close,False) 
    7070        self.assertEqual(self.ran_on_open,False) 
  • branches/active/character_customization/game/tests/test_scriptable.py

    r584 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject, Scriptable 
     19from parpg.objects.base import GameObject, Scriptable 
    2020 
    2121class  TestScriptable(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_single_item_container.py

    r653 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import GameObject, Carryable 
    20 from scripts.objects.composed import SingleItemContainer 
     19from parpg.objects.base import GameObject, Carryable 
     20from parpg.objects.composed import SingleItemContainer 
    2121 
    2222class  TestSingleItemContainer(unittest.TestCase): 
  • branches/active/character_customization/game/tests/test_wearable.py

    r653 r736  
    1717 
    1818import unittest 
    19 from scripts.objects.base import Wearable 
     19from parpg.objects.base import Wearable 
    2020 
    2121class  TestWearable(unittest.TestCase): 
Note: See TracChangeset for help on using the changeset viewer.