def test_compiler_with_postgresql(self): assert str( row_to_json(sa.text('article.*')).compile( dialect=postgresql.dialect())) == 'row_to_json(article.*)'
def test_compiler_with_default_dialect(self): assert str(row_to_json( sa.text('article.*'))) == ('row_to_json(article.*)')
def test_compiler_with_postgresql(self): assert str(row_to_json(sa.text('article.*')).compile( dialect=postgresql.dialect() )) == 'row_to_json(article.*)'
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.*)' )