moved tests directory

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2017-06-24 11:35:46 +02:00
parent 2d9bbf39f0
commit fa08e007db
136 changed files with 2 additions and 2 deletions

16
tests_dir/update.py Normal file
View File

@@ -0,0 +1,16 @@
p1=people
p2=p1.rename({'id':'i'})
p2=p2.rename({'i':'id'})
assert p1==p2
assert p1._readonly
assert p2._readonly
# It is VERY important to not change the original relations
# or other tests might fail randomly, since the relations are
# only loaded once
p2.update('age==20', {'age':50})
assert p2._readonly == False
assert p1!=p2
p3 = p2.selection('age!=50')
p4 = p1.selection('age!=20')
assert p3==p4