<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>On 17/03/2020 13:55, Amar Takhar wrote:<br>
</p>
<blockquote type="cite"
cite="mid:20200317125544.GA78689@darkbeer.org">
<pre class="moz-quote-pre" wrap="">On 2020-03-17 06:52 +0100, Sebastian Huber wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">So you would not use test classes to group tests for a specific class?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">No I would not typically grouping tests involves keeping them in separate files.
You gain no advantage to keeping them all in one large file. You can also use
directory structures to do this as well.</pre>
</blockquote>
<p>Ok, what would be a recommendation for the guidelines? Something
like this:</p>
<p>Place tests for a module in a directory. Use individual test
files for tests related to a particular class or functionality,
e.g. module/test_xyz.py.<br>
</p>
<p>OR</p>
<p>Use individual test files for tests related to a particular class
or functionality. Include the module name in the test file names,
e.g. test_module_xyz.py.<br>
</p>
</body>
</html>