[TIP] Cannot load my fixtures (fixture 1.4)

Raphael Marvie raphael.marvie at univ-lille1.fr
Mon Feb 4 06:20:31 PST 2013


I am trying to use fixture (v1.4, w/ sqlobject 1.3.2) in order to 
present the use of fixtures in my course on testing. Using the 
documentation I was not able to make an `hello world', having the 
following error:

fixture.exc.LoadError: TypeError: Author() did not get expected keyword 
argument 'first_name' (with 'frank_herbert' of 
'<fixture.dataset.dataset.frank_herbert object at 0x7f625835a650>' in 
<Authors at 0x7f625834cb10 with keys ['frank_herbert']>)

It is raised when executing the setup() on my dbfixture.data [full 
source code, 37 lines, attached].

Does any one see an evident mistake I make?


Raphael Marvie
LIFL - Université Lille 1
+33 3 20 33 59 51
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.py
Type: text/x-python
Size: 626 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130204/7d896582/attachment.py>

More information about the testing-in-python mailing list