TG2: functional testing with paste.fixtures

View: New views
2 Messages — Rating Filter:   Alert me  

TG2: functional testing with paste.fixtures

by webguy7890 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


i am trying to load some init data into the database for my functional
tests.  i am following the directions at
http://farmdev.com/projects/fixture/using-fixture-with-pylons.html#loading-initial-data.
i added that snippet into websetup's setup_app (and app/tests/
__init__.py).  however, i m getting the following exception:

fixture.exc.StorageMediaNotFound: could not find <function
negotiated_medium at 0x1eb8848> 'People' for dataset <PeopleData at
0x1f9da10 with keys ['person1'. 'person2' ...]> in self.env (<type
'module'>)

i think the problem is that the actual table name in the db is
"people" instead of "People".  if so, how do i fix this?  i m
declaring my model via the DeclarativeBase approach.

thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: TG2: functional testing with paste.fixtures

by webguy7890 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


correction: i m actually working with farmdev's instead of paste's
fixture module.  anyway, any help with the question would be greatly
appreciated.


On Nov 1, 1:06 am, webguy7890 <privacyinva...@...> wrote:

> i am trying to load some init data into the database for my functional
> tests.  i am following the directions athttp://farmdev.com/projects/fixture/using-fixture-with-pylons.html#lo....
> i added that snippet into websetup's setup_app (and app/tests/
> __init__.py).  however, i m getting the following exception:
>
> fixture.exc.StorageMediaNotFound: could not find <function
> negotiated_medium at 0x1eb8848> 'People' for dataset <PeopleData at
> 0x1f9da10 with keys ['person1'. 'person2' ...]> in self.env (<type
> 'module'>)
>
> i think the problem is that the actual table name in the db is
> "people" instead of "People".  if so, how do i fix this?  i m
> declaring my model via the DeclarativeBase approach.
>
> thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---