Re: Dynamic Fixtures

2007-03-19 Thread [EMAIL PROTECTED]
ank=True in model). ~David On Mar 15, 4:55 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Hi all, > > On the users list, Gijs <[EMAIL PROTECTED]> has raised the idea > of dynamic fixtures. For example, Rails allows the use of embedded > Ruby in afixtur

Re: Dynamic Fixtures

2007-03-15 Thread Malcolm Tredinnick
On Fri, 2007-03-16 at 11:05 +0900, Russell Keith-Magee wrote: > On 3/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > When I was talking about using the serialisation framework before, I > > wasn't actually thinking of going via the database: just serialising > > using the lower-level

Re: Dynamic Fixtures

2007-03-15 Thread Jeremy Bowers
Russell Keith-Magee wrote: > Hi all, > > On the users list, Gijs <[EMAIL PROTECTED]> has raised the idea > of dynamic fixtures. Well, I hate to pitch my own project, but consider my NonMockObjects: http://www.jerf.org/programming/nonMockObjects.html API docs. explanatio

Re: Dynamic Fixtures

2007-03-15 Thread Russell Keith-Magee
On 3/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > When I was talking about using the serialisation framework before, I > wasn't actually thinking of going via the database: just serialising > using the lower-level stuff from dictionaries or whatever. Admittedly > some helper functions

Re: Dynamic Fixtures

2007-03-15 Thread [EMAIL PROTECTED]
Personally, I do think there would be some benefit in this type of behavior. Trying to create a bunch of test data can be a pain. For instance, you can do it programmatically with Python but then you end up with the cycle of : - Populate data from scripts - Dump to a serialized form - Load into

Re: Dynamic Fixtures

2007-03-15 Thread Malcolm Tredinnick
On Fri, 2007-03-16 at 09:44 +0900, Russell Keith-Magee wrote: > On 3/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > > would define a fixture with 1000 instances of an object. > > > > I have to ask a dumb question first: what is this sort of thing useful > > for? More importantly, why

Re: Dynamic Fixtures

2007-03-15 Thread Russell Keith-Magee
On 3/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > would define a fixture with 1000 instances of an object. > > I have to ask a dumb question first: what is this sort of thing useful > for? More importantly, why can't it be done by using existing our > existing serialisation framework

Re: Dynamic Fixtures

2007-03-15 Thread Malcolm Tredinnick
Hey Russ, On Fri, 2007-03-16 at 08:55 +0900, Russell Keith-Magee wrote: > Hi all, > > On the users list, Gijs <[EMAIL PROTECTED]> has raised the idea > of dynamic fixtures. For example, Rails allows the use of embedded > Ruby in a fixture file, so that: > > <% f

Dynamic Fixtures

2007-03-15 Thread Russell Keith-Magee
Hi all, On the users list, Gijs <[EMAIL PROTECTED]> has raised the idea of dynamic fixtures. For example, Rails allows the use of embedded Ruby in a fixture file, so that: <% for i in 1..1000 %> fix_<%= i %>: id: <%= i %> name: guy_<%= 1 %> <% end %&g