On Wed, May 30, 2012 at 10:01 AM, Thomas S Hatch <
that...@gmail.com> wrote:
> We ran into this with the cmd module. This is why we renamed it to cmdmod
> and used the virtual function to fix it. I think we should just do the same
> with the state module. This same problem would be evident in all of the
> modules themselves, not just the tests, so I think that making a _test
> convention would not correctly parallel the underlying problem.
> On Wed, May 30, 2012 at 10:50 AM, Baiju M <
baiju....@gmail.com> wrote:
>>
>> Hi,
>>
>> Can we use a naming convention for integration test case module names.
>> We do have a naming convention all unit test modules, they are ending with
>> _test.py The same convention can be used for integration tests.
>>
>> There is test module named `cmd.py` inside `tests/integration/states`,
>> due to this, I cannot use pdb in any other modules there. I get
>> these error:
>>
>> Traceback (most recent call last):
>> File "tests/integration/states/host.py", line 25, in test_present
>> import pdb;pdb.set_trace()
>> File "/usr/lib/python2.6/pdb.py", line 59, in <module>
>> class Pdb(bdb.Bdb, cmd.Cmd):
>> AttributeError: 'module' object has no attribute 'Cmd'
>>
>> Well, we can easily fix this issue by renaming that cmd.py to somthing
>> else. But still having a common naming convention would be better.
>>
>> If this proposal is accepted, I can volunteer to send a pull request
>> with renaming of all integration test modules :)
>>
>> Regards,
>> Baiju M
>
>