Re: Testing with complex database setups
Hi
If I understand you correctly, you want to be able to initialise your
database to a known state;
https://docs.djangoproject.com/en/1.5/howto/initial-data/
is what you want I think - it also contains a link to this
https://docs.djangoproject.com/en/1.5/topics/testing/overview/#topics-testing-fixtures
On Thu, 23 May 2013 15:09:08 +0300
Jani Tiainen <redetin@gmail.com> wrote:
> Hi,
>
> I've product that uses complex setup scripts - tens of SQL scripts that
> creates tables, views, complex triggers, grants permissions and such and
> finally populates database with some pre-data.
>
> So how I should proceed with unit testing with database like that, since
> some operations rely heavily that there really exists all that
> trigger-function mess in the database? So that I don't need everytime to
> start from the scratch but from some known state of the db?
>
--
Drew Ferguson
AFC Commercial
http://www.afccommercial.co.uk
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home