def test_data9(self, db_cur, queries_file): with pytest.raises(SQLpyException): sql = Queries(queries_file) data = (('Jeff', 'Goldblum'), ('Jeff', 'Goldblum')) output = sql.INSERT_ACTORS(db_cur, data, many=True, n='2') assert output == [('Jeff', 'Goldblum'), ('Jeff', 'Goldblum')]
def test_data2_4(self, db_cur, queries_file): sql = Queries(queries_file) data = (('Jeff', 'Goldblum'), ('Jeff', 'Goldblum')) sql.DELETE_ACTORS(db_cur, data[0]) output = sql.INSERT_ACTORS(db_cur, data, many=True, n=2) assert output == [('Jeff', 'Goldblum'), ('Jeff', 'Goldblum')]