testing a model that uses stored procedures
Hello,
I have a model that uses a stored procedure + a column outside of django's control for specialized selects. My problem is that I don't see a good way of testing my related python code for that model.
Since I need to execute some SQL code at the beginning of each test, right after the fixtures are applied, I can always get a db cursor, and execute it in the setUp method. However, that would make the whole test a bit more unreadable, and harder to maintain.
What I want is to give the test an sql file, much like a fixture is given. Is there something like this?
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home