def test_three(self): tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': '', 'tags': ['ronyal', 'iskal', 'is kal'] }) self.assertEqual(tasker.tasker_tags(test_cursor, test_connection, {}), { 'ronyal': '0', 'iskal': '0', 'is kal': '0' }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['iskal', 'is kal', 'mnoga'] }) self.assertEqual(tasker.tasker_tags(test_cursor, test_connection, {}), { 'ronyal': '0', 'iskal': '1', 'is kal': '1', 'mnoga': '1' })
def setUp(self): tasker.create_tables(test_cursor, test_connection) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['ronyal'] })
def test_two(self): # one note tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['ronyal', 'iskal'] }) self.assertEqual( tasker.last_record_id_notes(test_cursor, test_connection), 1)
def setUp(self): tasker.create_tables(test_cursor, test_connection) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['ronyal', 'iskal', 'is kal'] }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'kak je tak', 'tags': ['iskal', 'o kale'] }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'vesma kal', 'tags': ['ronyal', 'iskal', 'is kal', 'o kale'] }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'pichal', 'tags': ['ronyal'] })
def test_two(self): tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['iskal', 'ronyal', 'is kal'] }) self.assertEqual( tasker.return_used_tag_dictionary(test_cursor, test_connection), { 'ronyal': 1, 'iskal': 1, 'is kal': 1 })
def test_two(self): tasker.tasker_add(test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': [] }) self.assertEqual( tasker.tasker_get(test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': '', 'tags': [] }), {'1': 'gogakal'})
def test_four(self): self.assertEqual( tasker.tasker_add(test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': '', 'tags': [] }), 'Error')
def test_three(self): # many notes tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'tags': ['ronyal', 'iskal'] }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'kak je tak', 'tags': ['o kale'] }) self.assertEqual( tasker.last_record_id_notes(test_cursor, test_connection), 2)
def setUp(self): tasker.create_tables(test_cursor, test_connection) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'gogakal', 'hashtag': 1, 'tags': ['ronyal', 'iskal'], 'IDs': [] }) tasker.tasker_add( test_cursor, test_connection, { 'beginning': 'tasker', 'command': 'add', 'note': 'kak je tak', 'hashtag': 1, 'tags': ['iskal'], 'IDs': [] })