You can have a look at these two examples of test stack for web2py :

https://github.com/viniciusban/web2py.test
https://github.com/niphlod/welcome_augmented (from Niphold :)

The web2py.test connection to regular or test database is supported,
welcome_augmented manage connection and have function for setup and
teardown if I remember.

Richard

On Fri, Oct 30, 2015 at 9:19 AM, Niphlod <niph...@gmail.com> wrote:

> do a backup of your one, then restore it with a different name (e.g.,
> "test_database"), then BEFORE running the unittest check that your DAL
> connection string points to "test_database".
>
>
> On Friday, October 30, 2015 at 12:51:26 AM UTC+1, Maelle Taurand wrote:
>>
>> Hi,
>> thanks for response.
>>
>> I am using MySQL.
>>
>>
>> Le vendredi 2 octobre 2015 23:06:29 UTC+2, Maelle Taurand a écrit :
>>>
>>>
>>> Hello
>>> I'm trying unittest with web2py. I found this article :
>>> http://www.web2py.com/AlterEgo/default/show/260
>>>
>>> It works only when the db is the current database (db object).
>>>
>>> I need help to make a copy of database in order to not run unittest on
>>> the real database ?
>>>
>>> Thanks for answers
>>>
>> --
> 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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to