Fixes in tests and webmodel
This commit is contained in:
parent
271c6c787a
commit
df0a39d596
2 changed files with 12 additions and 2 deletions
|
|
@ -49,6 +49,8 @@ class TestWebModelMethods(unittest.TestCase):
|
|||
|
||||
self.assertEqual(model.select_a_row_where(['title']), {'title': 'Example title Updated'})
|
||||
|
||||
self.assertEqual(model.select_to_array(['title', 'content']), {1: {'title': 'Example title Updated', 'content': 'New content Updated'}})
|
||||
|
||||
model.yes_reset_conditions=True
|
||||
|
||||
model.reset_conditions()
|
||||
|
|
@ -61,7 +63,6 @@ class TestWebModelMethods(unittest.TestCase):
|
|||
|
||||
self.assertEqual(row, {'id': 1, 'title': 'Example title Updated', 'content': 'New content Updated'})
|
||||
|
||||
|
||||
self.assertTrue(model.element_exists(1))
|
||||
|
||||
self.assertTrue(model.drop())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue