test naming
Robert Collins
robertc at robertcollins.net
Wed Nov 23 21:58:00 GMT 2005
On Wed, 2005-11-23 at 09:49 -0600, John A Meinel wrote:
> I went ahead and did this, since you are sleeping now. In my integration
> branch, all of the tests are now named:
> bzrlib/tests/test_foo.py
>
> I went with the underscore, because I thought not having it looked bad,
> especially for something like: testcommit_merge.py
>
> Everything has been consistently named now. And all 493 tests run and pass.
>
> I changed the name to "tests" because selftest was a remnant left over
> because of the command name. While 'tests' fits better (and is shorter).
so PEP8 says it should be testcommitmerge.py not test_commitmerge.py or
testcommit_merge.py or test_commit_merge.py. I'm pretty sure we have a
not on this in HACKING.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051124/d3ab6d8d/attachment.pgp
More information about the bazaar
mailing list