Comments (9)
Original comment by [email protected]
on 8 Mar 2012 at 3:17
- Changed state: Accepted
from pymssql.
Doesn't the following work?
nosetests tests/test_sqlalchemy.py
For one possible piece in the puzzle of doing automated tests, see my addition
of the `tox` testing tool at
http://code.google.com/r/msabramo-pymssql/source/detail?r=33b738e293d9ebdab482df
bff679a1c1db6b338f
Original comment by [email protected]
on 1 Dec 2012 at 6:08
from pymssql.
no, thats not what I'm getting at. I want to run through the SA test suite
using a mssql database with pymssql as the driver. I have done it before, it
takes a little manual adjusting and a few tests still fail.
Original comment by [email protected]
on 4 Dec 2012 at 3:56
from pymssql.
How about something like this?
(py26.venv)marca@marca-mac:~/dev/hg-repos/pymssql$ cat
tests/run_sqlalchemy_tests.sh
#!/bin/sh
SQLALCHEMY_VERSION="0.8.0b2"
SQLALCHEMY_TAR_GZ_URL="http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAl
chemy-${SQLALCHEMY_VERSION}.tar.gz"
SQLALCHEMY_TAR_GZ="SQLAlchemy-${SQLALCHEMY_VERSION}.tar.gz"
SQLALCHEMY_DIR="SQLAlchemy-${SQLALCHEMY_VERSION}"
DB_URI="$1"
if [ ! -d ${SQLALCHEMY_DIR} ]; then
if [ ! -f ${SQLALCHEMY_TAR_GZ} ]; then
wget ${SQLALCHEMY_TAR_GZ_URL}
tar xzf ${SQLALCHEMY_TAR_GZ}
fi
fi
( cd ${SQLALCHEMY_DIR} && python sqla_nose.py -v --dburi=${DB_URI} )
This is a shell script so it won't work on Windows without something like
Cygwin, but it should work on other systems. If we wanted to run it on Windows
too, I guess we could rewrite this in Python.
Original comment by [email protected]
on 16 Jan 2013 at 12:51
from pymssql.
> This is a shell script so it won't work on Windows without something like
Cygwin, but it should work on other systems. If we wanted to run it on Windows
too, I guess we could rewrite this in Python.
This is better than nothing, but I would like to see it rewritten in Python.
We support windows so running the SA test suite on Windows is something we
should do as well. A python script seems like the most flexible and familiar
option here. Since its python, you wouldn't have to call out to sql_nose.py
either, just look at the logic they use and duplicate (or maybe even import &
call).
Also, might be good if the DB_URI was taken from our test settings file.
Original comment by [email protected]
on 16 Jan 2013 at 2:15
from pymssql.
OK, how about this?
https://gist.github.com/4710827
Original comment by [email protected]
on 4 Feb 2013 at 11:49
from pymssql.
Yah, looks good. I didn't run it, I'm assuming it works. :)
Original comment by [email protected]
on 5 Feb 2013 at 3:04
from pymssql.
Committed as:
http://code.google.com/p/pymssql/source/detail?r=999d9dbe791b4907aeaf5fd75e84004
ef7b3e5e0
Randy, do you have time to give it a spin? It should be pretty quick if it
works. :-)
Original comment by [email protected]
on 5 Feb 2013 at 5:16
- Changed state: Fixed
from pymssql.
I'd love to...unfortunately, just trying to run our own tests is giving me a
core dump. Not sure what the deal is, I've tried cleaning and using the newest
Cython. Don't have time to troubleshoot that right now, but I'll to get to it
in the next week or two.
Original comment by [email protected]
on 6 Feb 2013 at 4:15
from pymssql.
Related Issues (20)
- Failure to pass Unicode characters to callproc; failing test: tests.test_sprocs.TestCallProcFancy.testCallProcWithUnicodeStringWithRussianCharacters HOT 7
- When pymssql.connect() - DB-Lib error message 20002, severity 9;Adaptive Server connection failed HOT 1
- Fix test_config.py typos. HOT 1
- Small fix about TDS protocol version in a comment HOT 1
- Fix a small bug in SP tests HOT 3
- Fix SP name handling in threaded test so we can actually run it. HOT 2
- Feature for discussion (with patch): pymssql_shell HOT 2
- A few tests fail if running on a system that has SQL Server available on port 1433 HOT 1
- add function for getting FreeTDS version HOT 1
- datetime conversion to sql is not converting sub-seconds correctly HOT 5
- memory leaks (patches included) HOT 24
- pymssql-2.0.0b1-dev-20130403.tar.gz doesn't compile due to /usr/bin/ld: cannot find -lct HOT 8
- Installer issue HOT 1
- error: unrecognized command line option "-Wno-parentheses-equality" HOT 8
- pymssql.so: undefined symbol: __fread_chk HOT 5
- Support "with" statement (PEP 343) HOT 5
- Can't compile on OS X 10.8.4 HOT 10
- Review pymssql result processing code
- Make Cython not necessary when pymssql.c and _mssql.c are already present HOT 1
- IOError: [Errno 2] No such file or directory: 'ChangeLog_highlights.rst' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymssql.