Ejemplo n.º 1
0
 def test_compiler_with_postgresql(self):
     assert str(
         row_to_json(sa.text('article.*')).compile(
             dialect=postgresql.dialect())) == 'row_to_json(article.*)'
Ejemplo n.º 2
0
 def test_compiler_with_default_dialect(self):
     assert str(row_to_json(
         sa.text('article.*'))) == ('row_to_json(article.*)')
Ejemplo n.º 3
0
 def test_compiler_with_postgresql(self):
     assert str(row_to_json(sa.text('article.*')).compile(
         dialect=postgresql.dialect()
     )) == 'row_to_json(article.*)'
Ejemplo n.º 4
0
 def test_compiler_with_default_dialect(self):
     with pytest.raises(sa.exc.CompileError):
         str(row_to_json(sa.text('article.*')))
 def test_compiler_with_default_dialect(self):
     assert str(row_to_json(sa.text('article.*'))) == (
         'row_to_json(article.*)'
     )
Ejemplo n.º 6
0
 def test_compiler_with_default_dialect(self):
     with pytest.raises(sa.exc.CompileError):
         str(row_to_json(sa.text('article.*')))