Update of /cvsroot/pymerase/pymerase/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv7130
Modified Files:
TestSchool.py
Log Message:
Add test for checking .smw files in addition to zargo files.
Index: TestSchool.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/tests/TestSchool.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TestSchool.py 26 Apr 2003 00:00:19 -0000 1.7
--- TestSchool.py 7 May 2003 21:51:58 -0000 1.8
***************
*** 117,127 ****
! def testCreateUML_underscore_API(self):
"""Test generating python code from zargo file with the db using underscore_word
"""
self.resetDirectory()
!
# Figure out path information
! schema = os.path.abspath("./school.zargo")
api_output = os.path.abspath("./school")
sql_output = os.path.abspath("./school.sql")
--- 117,127 ----
! def testCreateUML_underscore_API(self, scehma):
"""Test generating python code from zargo file with the db using underscore_word
"""
self.resetDirectory()
! 22
# Figure out path information
! schema = os.path.abspath("school.smw")
api_output = os.path.abspath("./school")
sql_output = os.path.abspath("./school.sql")
***************
*** 146,149 ****
--- 146,155 ----
+ def testSMWCreateUML_underscore_API(self):
+ self.testCreateUML_underscore_API("school.smw")
+
+ def testPoseidonCreateUML_underscore_API(self):
+ self.testCreateUML_underscore_API("school.xmi")
+
def testCreateCapsAPI(self):
"""Test generating python api with the sql part using CapWord.
***************
*** 502,506 ****
CreatePyGenexTestCases("testCreate_underscore_API"),
CreatePyGenexTestCases("testCreateCapsAPI"),
! CreatePyGenexTestCases("testCreateUML_underscore_API"),
]
for api in api_tests:
--- 508,513 ----
CreatePyGenexTestCases("testCreate_underscore_API"),
CreatePyGenexTestCases("testCreateCapsAPI"),
! CreatePyGenexTestCases("testSMWCreateUML_underscore_API"),
! CreatePyGenexTestCases("testPoseidonCreateUML_underscore_API"),
]
for api in api_tests:
|