--SQLAlchemy -The Python SQL Toolkit and Object Relational MapperTo post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.---You received this message because you are subscribed to the Google Groups "sqlalchemy" group.To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/cf898e96-b78a-4aa4-9a19-4e966007234cn%40googlegroups.com.Attachments:
- import errror.PNG
from sqlalchemy.testing import fixtures, AssertsCompiledSQL
from sqlalchemy.sql.functions import ReturnTypeFromArgs
from sqlalchemy import select
from sqlalchemy.sql import column
class isnull(ReturnTypeFromArgs):
name = 'isnull'
class TestFunction(fixtures.TestBase,AssertsCompiledSQL):
__dialect__ = 'mssql+mxodbc'
def test_null_concat(self):
self.assert_compile(select([isnull(column('spam'), '') +
isnull(column('spamspam'), '').label("bothcols"), ]),
"SELECT isnull(spam, :isnull_1) + "
"isnull(spamspam, :isnull_2) AS anon_1")
To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/b51b1f40-e703-4d70-a175-35210a85bb28n%40googlegroups.com.
Hi,Thank you for response.I would like to inform you that , for testing that code I am using pytest only. What i am facing is, it is worked properly till Sqlalchemy version 1.3.15. When I upgraded the Sqlalchemy version to 1.3.17 ,mentioned piece of code is failing at import level itself.''from sqlalchemy. testing import fixtures",unable to import fixtures into my file to test my code.So how can I import fixtures in latest versions of sqlalchemy for testing my code.
To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/ea1d00f1-a63c-4389-ae7a-80a7b30424dan%40googlegroups.com.