I'm trying to create unit tests for my library which includes an
Elixir model.  The problem is I'm not sure how to structure my tests
to work independently of each other but use the same model.

As an example, I've constructed this: http://paste.turbogears.org/paste/7064

Placed in elixir/tests as test_cleanup_all_setup_all.py, it not only
fails itself, but it interferes with test_acts_as_list.py because
'Person' resolves to several entities.

Is there a good example of how to effectively implement unit tests for
an Elixir-enabled project?

I will happily create a recipe for this on the documentation once I
figure out a simple, repeatable technique.

What I would like to do is be able to setup_all() my entities in each
test and then somehow cleanup so that subsequent tests can do the
same.

I've seen others ask similar questions.  I've seen responses that
indicate that maybe it can be done (beginning with 0.4), but I haven't
yet been able to figure out how.

Any suggestions are appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to