@@ -55,6 +55,7 @@ def setup( request):
5555 print 'database initialization completed successfully'
5656 return dbConn
5757
58+ @pytest .mark .skipif (True , "Enable for testing: CreateService Session closes on failed create #52" )
5859def test_SessionNotFailed (setup ):
5960 # goal of this is to see that if we force errors like a null value, or duplicate that the session does not fail
6061
@@ -69,7 +70,7 @@ def test_SessionNotFailed(setup):
6970 lastName = 'castronova' ,
7071 middleName = 'michael' )
7172
72- assert 'People.PersonFirstName may not be NULL' in str (excinfo .value )
73+ assert 'NULL' in str (excinfo .value )
7374
7475 # now add again
7576 setup .odmcreate .createPerson (firstName = "tony" ,
@@ -122,7 +123,7 @@ def test_personFail(setup):
122123 lastName = 'castronova' ,
123124 middleName = 'michael' )
124125
125- assert 'People.PersonFirstName may not be NULL ' in str (excinfo .value )
126+ assert 'null ' in str (excinfo .value ). lower ( )
126127
127128def test_createVariable (setup ):
128129
@@ -155,7 +156,7 @@ def test_createVariable(setup):
155156 speciation = None ,
156157 definition = None )
157158
158- assert 'VariableCode is not unique' in str (excinfo .value )
159+ assert 'unique' in str (excinfo .value ). lower ( )
159160
160161 vars = setup .odmread .getVariables ()
161162
@@ -307,7 +308,7 @@ def test_createModel(setup):
307308 setup .odmcreate .createModel (code = 'model' ,
308309 name = 'mymodel2' ,
309310 description = 'my test model2' )
310- assert 'ModelCode is not unique' in str (excinfo .value )
311+ assert 'unique' in str (excinfo .value ). lower ( )
311312
312313
313314def test_createRelatedModel (setup ):
0 commit comments