Re: [Modeling-users] install tests on 0.9pre11
Status: Abandoned
Brought to you by:
sbigaret
|
From: Mario R. <ma...@ru...> - 2003-07-31 11:21:42
|
On Mercredi, juil 30, 2003, at 19:14 Europe/Zurich, Sebastien Bigaret =20=
wrote:
> Mario Ruggier <ma...@ru...> wrote:
...
>> % python test_EditingContext_Global.py
>> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> FAIL: [EC] Checks that a FK/class prop. gets its value after saving =20=
>> changes
...
> Okay, this one is expected --and will assert differently in the next
FIne, thanks.
>> % python test_AdaptorLayer.py
>> Traceback (most recent call last):
>> File "test_AdaptorLayer.py", line 36, in ?
>> from utils import parseConfigFile_and_updateModel
>> ImportError: cannot import name parseConfigFile_and_updateModel
>> %
>
> I forgot that one, sorry, so it was not updated when this function was
> transferred to Model.updateModelWithCFG(). You'll find enclosed a =
patch
> correcting this, I'll update it on cvs. Thanks for reporting.
Applied the patch, and works OK.
>> I should worry about this?
>> Also, there are other test steps to execute now?
>> (i.e. should this README be update?)
>
> I've re-read it and yes, you're right, it should be updated:
>
> - test_EditingContext_ParentChild.py is not mentioned (tests for
> nested ECs)
>
> - it should also mention that the three test_EditingContext_*.py
> testsuites take option '-d' to specify the database: '-d =20
> Postgresql'
> (default), '-d MySQL', '-d SQLite'. Each one corresponds to its
> dedicated configuration file: Postgresql.cfg, etc.
OK. I touched up that README file to reflect these changes,
and it is attached. (Also, simplified the formatting for easier =20
copy'n'paste.)
I noticed there is no sample .cfg for SQLite, and running the tests for
this fails:
% python test_EditingContext_Global.py -r -d SQLite
Traceback (most recent call last):
File "test_EditingContext_Global.py", line 1297, in ?
errs =3D main(sys.argv)
File "test_EditingContext_Global.py", line 1273, in main
Model.updateModelWithCFG(author_books_model, database_cfg)
File =20
"/Volumes/Other/modelingcvs/release/ModelingCore-0.9-pre-11/Modeling/=20
Model.py", line 105, in updateModelWithCFG
raise IOError, err_msg
IOError: Unable to open file 'SQLite.cfg' (passed in parameter =20
'cfg_path' or taken from env. variable MDL_DB_CONNECTIONS_CFG
Original exception was: IOError: [Errno 2] No such file or directory: =20=
'SQLite.cfg'
%
Cheers, mario
> -- S=E9bastien.
|