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.master
parent
78a2e63e14
commit
5073567757
@ -1,5 +1,4 @@
|
|||||||
p1=people.rename({"id":"ido"})
|
p1=people.rename({"id":"ido"})
|
||||||
people.insert((123,"lala",0,31))
|
people.insert((123,"lala",0,31))
|
||||||
|
assert people!=p1
|
||||||
retval=people==p1
|
|
||||||
people.delete("id==123")
|
people.delete("id==123")
|
@ -1 +0,0 @@
|
|||||||
{'retval':False}
|
|
@ -1,5 +1,4 @@
|
|||||||
p1=people.rename({"id":"ido"})
|
p1=people.rename({"id":"ido"})
|
||||||
p1.insert((123,"lala",0,31))
|
p1.insert((123,"lala",0,31))
|
||||||
|
assert people!=p1
|
||||||
retval=people==p1
|
|
||||||
people.delete("id==123")
|
people.delete("id==123")
|
@ -1 +0,0 @@
|
|||||||
{'retval':False}
|
|
Loading…
Reference in New Issue