You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I create or update django models from within the engine?
I know
I do know that I have access to the django service: self.services['Django'] = hitchpython.DjangoService(...
I want
I want to use this to define assumptions for my tests instead of using fixtures.
(However I have not tried using fixtures either nor do I now how that would go about)
I envision
I figured the easiest way would be to use my test factories to create the wanted models and update them according to the test assumptions.
next steps
Any suggestions or ideas on how to go about?
personal context
Today.. I will give a talk about ATDD with hitch at the Berlin Django User Group..
So I decided, that I want to know more to help hitch get more users and thus as a bonus improve my test engine of choice. ;)
Your help is appreciated. :D
The text was updated successfully, but these errors were encountered:
If you would prefer to write some django code to funnel data into your app that uses models directly before running the first step you can create a Django management command which you can run at the end of set_up somewhere:
Today.. I will give a talk about ATDD with hitch at the Berlin Django User Group.. Do I decided, that I want to know more to help hitch get more users and thus as a bonus improve my test engine of choice. ;)
How can I create or update django models from within the engine?
I know
I do know that I have access to the django service:
self.services['Django'] = hitchpython.DjangoService(...
I want
I want to use this to define assumptions for my tests instead of using fixtures.
(However I have not tried using fixtures either nor do I now how that would go about)
I envision
I figured the easiest way would be to use my test factories to create the wanted models and update them according to the test assumptions.
next steps
Any suggestions or ideas on how to go about?
personal context
Today.. I will give a talk about ATDD with hitch at the Berlin Django User Group..
So I decided, that I want to know more to help hitch get more users and thus as a bonus improve my test engine of choice. ;)
Your help is appreciated. :D
The text was updated successfully, but these errors were encountered: