Change how python tests are executed
Require them to have assert rather than testing the result variables set. This makes for way simpler code. Now also prints stacktrace to know where the problem occurred.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
p1=people.rename({"id":"ido"})
|
||||
people.insert((123,"lala",0,31))
|
||||
|
||||
retval=people==p1
|
||||
assert people!=p1
|
||||
people.delete("id==123")
|
@@ -1 +0,0 @@
|
||||
{'retval':False}
|
@@ -1,5 +1,4 @@
|
||||
p1=people.rename({"id":"ido"})
|
||||
p1.insert((123,"lala",0,31))
|
||||
|
||||
retval=people==p1
|
||||
assert people!=p1
|
||||
people.delete("id==123")
|
@@ -1 +0,0 @@
|
||||
{'retval':False}
|
Reference in New Issue
Block a user