[openstack-dev] [neutron] questions about uni test

2016-01-25 Thread Gareth
Hey neutron guys What will happen if I remove this line[0]? When running unit test, do we create tables in real database? [0] https://github.com/openstack/neutron/blob/master/neutron/tests/unit/testlib_api.py#L78 -- Gareth (Kun Huang) Cloud Computing, OpenStack, Distributed Storage,

Re: [openstack-dev] [neutron] questions about uni test

2016-01-25 Thread Henry Gessau
Gareth wrote: > It creates and cleans the tables in memory? Creates and deletes actually. Line 69 creates all the tables when a test starts. Line 78 uses the unittest framework to add the function clear_tables() to the post-test operations that are run after every

Re: [openstack-dev] [neutron] questions about uni test

2016-01-25 Thread Assaf Muller
On Mon, Jan 25, 2016 at 10:05 AM, Gareth wrote: > Hey neutron guys > > What will happen if I remove this line[0]? > > When running unit test, do we create tables in real database? > > [0] >

Re: [openstack-dev] [neutron] questions about uni test

2016-01-25 Thread Gareth
It creates and cleans the tables in memory? On Tue, Jan 26, 2016 at 12:56 AM, Assaf Muller wrote: > On Mon, Jan 25, 2016 at 10:05 AM, Gareth wrote: >> Hey neutron guys >> >> What will happen if I remove this line[0]? >> >> When running unit test, do