コード例 #1
0
 def test_compiler_with_postgresql(self):
     assert str(
         row_to_json(sa.text('article.*')).compile(
             dialect=postgresql.dialect())) == 'row_to_json(article.*)'
コード例 #2
0
 def test_compiler_with_default_dialect(self):
     assert str(row_to_json(
         sa.text('article.*'))) == ('row_to_json(article.*)')
コード例 #3
0
 def test_compiler_with_postgresql(self):
     assert str(row_to_json(sa.text('article.*')).compile(
         dialect=postgresql.dialect()
     )) == 'row_to_json(article.*)'
コード例 #4
0
 def test_compiler_with_default_dialect(self):
     with pytest.raises(sa.exc.CompileError):
         str(row_to_json(sa.text('article.*')))
コード例 #5
0
 def test_compiler_with_default_dialect(self):
     assert str(row_to_json(sa.text('article.*'))) == (
         'row_to_json(article.*)'
     )
コード例 #6
0
 def test_compiler_with_default_dialect(self):
     with pytest.raises(sa.exc.CompileError):
         str(row_to_json(sa.text('article.*')))