richard@sgddms-dev:~/Documents/programmation/web2py_dev/pydal/tests$ python
-m unittest -v validation.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/unittest/__main__.py", line 12, in <module>
    main(module=None)
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in
loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in
loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "validation.py", line 2, in <module>
    from ._compat import unittest
ValueError: Attempted relative import in non-package

:(

Richard

On Wed, Apr 29, 2015 at 3:43 PM, Niphlod <[email protected]> wrote:

> right, we should document it....
>
> inspecting tox.ini should give you a pretty nice headstart :-P
>
> however, if you want the "raw" command, it's
>
> python -m unittest -v tests
>
> same thing as "before" applies: setting a "DB" environmental variable to a
> backend uri makes the test run using that database.
>
>
> On Wednesday, April 29, 2015 at 7:00:35 PM UTC+2, Richard wrote:
>>
>> Hello,
>>
>> To run web2py tests we do : python web2py.py --run_system_tests
>>
>> How to run tests over pydal??
>>
>> Thanks
>>
>> Richard
>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to