How to use the pymssql.Cursor function in pymssql

To help you get started, we’ve selected a few pymssql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamkhazi / information-extraction-system / tests / db_connection_tests.py View on Github external
def test_connection_to_db(self):
        db_con = DbConnection()

        # if connect() function call raises exception unit test fails
        cursor = db_con.connect()
        # is right instance and not null
        self.assertIsInstance(cursor, pymssql.Cursor)