Exemplo n.º 1
0
 def test_data2(self, db_cur, queries_file, caplog):
     caplog.set_level(logging.DEBUG)
     sql = Queries(queries_file)
     data = ('Jeff', 'Goldblum')
     sql.PRE_CLEAR_ACTOR(db_cur, data)
     output = sql.INSERT_ACTOR(db_cur, data, n=1)
     assert output == ('Jeff', 'Goldblum')
     assert "('Jeff', 'Goldblum')" in caplog.text
Exemplo n.º 2
0
 def test_data2_1(self, db_cur, queries_file):
     sql = Queries(queries_file)
     data = ('Jeff', 'Goldblum')
     output = sql.INSERT_ACTOR(db_cur, data)
     assert output == [('Jeff', 'Goldblum')]