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:
Salvo 'LtWorf' Tomaselli
2015-11-18 12:05:56 +01:00
parent 78a2e63e14
commit 5073567757
5 changed files with 17 additions and 35 deletions

View File

@@ -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")

View File

@@ -1 +0,0 @@
{'retval':False}

View File

@@ -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")

View File

@@ -1 +0,0 @@
{'retval':False}