|
I do it like this: import sys import os sys.path.append(os.path.realpath('../')) import unittest import datetime import sql and then run it from the tests directory. Just leave it for now and I'll include it in my change branch. -tim mdipierro wrote: I was going to ask you the same question. I open a python shell and import the tests.Massimo On Dec 3, 8:25 am, Timothy Farrell <[EMAIL PROTECTED]> wrote:Massimo, When you run unittests, which directory do you run them from. I typically run mine from the test directory, but i have a built-in path mechanism to be able to find the necessary modules. With your new test_dal.py, I cannot get it to run properly without modifying the PYTHONPATH. How do you do it? Thanks, - tim Timothy Farrell wrote:Oh snap! I've gotta go make a launchpad branch and merge my changes in. I have already started something for this but fortunately our efforts don't overlap much. -tim mdipierro wrote:gluon/tests/test_dal.py the test does not yet include migrations, max, min, sum operators, csv IO and select of all possible types. It does test queries well. Feel free to add more and repost it.-- Timothy Farrell<[EMAIL PROTECTED]>Computer Guy Statewide General Insurance Agency (www.swgen.com)-- Timothy Farrell<[EMAIL PROTECTED]>Computer Guy Statewide General Insurance Agency (www.swgen.com) -- Timothy Farrell <[EMAIL PROTECTED]> Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [web2py:12854] new in trunk DAL unittest mdipierro
- [web2py:12862] Re: new in trunk DAL unittest Timothy Farrell
- [web2py:12863] Re: new in trunk DAL unittest Timothy Farrell
- [web2py:12868] Re: new in trunk DAL unittest mdipierro
- [web2py:12870] Re: new in trunk DAL unitt... Timothy Farrell
- [web2py:12872] Re: new in trunk DAL ... mdipierro
- [web2py:12874] Re: new in trunk ... Timothy Farrell
- [web2py:/] Re: new in trunk ... mdipierro
- [web2py:12879] Re: [web2py:/... Yarko Tymciurak
- [web2py:12880] Re: [web2py:/... Timothy Farrell
- [web2py:12881] Re: [web2py:/... Yarko Tymciurak
- [web2py:12882] Re: new in tr... mdipierro

