<div dir="ltr">It&#39;s a little harder than that because some these files and other files both inside and outside of cctbx import from one of the these files. &quot;git mv&quot; is not enough.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Cheers<div><br></div><div>Nigel<div><br></div><div>---</div><div>Nigel W. Moriarty<br>Building 33R0349, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory<br>Berkeley, CA 94720-8235<br>Phone : 510-486-5709     Email : NWMoriarty@LBL.gov<br>Fax   : 510-486-5909       Web  : <a href="http://CCI.LBL.gov" target="_blank">CCI.LBL.gov</a></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 2, 2018 at 8:05 PM <a href="mailto:Graeme.Winter@Diamond.ac.uk">Graeme.Winter@Diamond.ac.uk</a> &lt;<a href="mailto:Graeme.Winter@diamond.ac.uk">Graeme.Winter@diamond.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nigel,<br>
<br>
I read Nick’s question differently - some projects do use pytest - so may accidentally pick these tests up and then fail.<br>
<br>
The request was to rename the four files as<br>
<br>
&quot;Is there any reason they should not be renamed from “test_*.py” to “tst_*.py”?”<br>
<br>
for<br>
<br>
&quot;$D/conformation_dependent_library/test_cdl.py&quot;,<br>
   &quot;$D/conformation_dependent_library/test_cdl_esd.py&quot;,<br>
“$D/conformation_dependent_library/test_rdl.py&quot;,<br>
&quot;$D/conformation_dependent_library/test_hpdl.py”,<br>
<br>
which seems like a reasonable compromise i.e. keep the existing testing scheme and flag that these are “traditional style” libtbx tests  by the prefix tst<br>
<br>
Best wishes Graeme<br>
<br>
On 3 Oct 2018, at 11:04, Nigel Moriarty &lt;<a href="mailto:nwmoriarty@lbl.gov" target="_blank">nwmoriarty@lbl.gov</a>&lt;mailto:<a href="mailto:nwmoriarty@lbl.gov" target="_blank">nwmoriarty@lbl.gov</a>&gt;&gt; wrote:<br>
<br>
These tests were added before pytest was ever considered for use with cctbx so there was no reason to follow the convention of which you speak when writing the tests. The testing system that we use works fine so I&#39;m not sure why reimplementing it is necessary. We are happy to help you get up and running with the current system.<br>
<br>
Cheers<br>
<br>
Nigel<br>
<br>
---<br>
Nigel W. Moriarty<br>
Building 33R0349, Molecular Biophysics and Integrated Bioimaging<br>
Lawrence Berkeley National Laboratory<br>
Berkeley, CA 94720-8235<br>
Phone : 510-486-5709     Email : NWMoriarty@LBL.gov&lt;mailto:<a href="mailto:NWMoriarty@LBL.gov" target="_blank">NWMoriarty@LBL.gov</a>&gt;<br>
Fax   : 510-486-5909       Web  : <a href="http://CCI.LBL.gov" rel="noreferrer" target="_blank">CCI.LBL.gov</a>&lt;<a href="http://cci.lbl.gov/" rel="noreferrer" target="_blank">http://cci.lbl.gov/</a>&gt;<br>
<br>
<br>
On Tue, Oct 2, 2018 at 6:58 PM Pearce, N.M. (Nick) &lt;<a href="mailto:n.m.pearce@uu.nl" target="_blank">n.m.pearce@uu.nl</a>&lt;mailto:<a href="mailto:n.m.pearce@uu.nl" target="_blank">n.m.pearce@uu.nl</a>&gt;&gt; wrote:<br>
Hi,<br>
<br>
I’m trying to use the automatic pytest discovery in mmtbx and I notice that there are a few “libtbx-style” tests, namely<br>
        &quot;$D/conformation_dependent_library/test_cdl.py&quot;,<br>
        &quot;$D/conformation_dependent_library/test_cdl_esd.py&quot;,<br>
        “$D/conformation_dependent_library/test_rdl.py&quot;,<br>
        &quot;$D/conformation_dependent_library/test_hpdl.py”,<br>
that follow the “pytest” naming convention, and are thus picked up by the pytest.discover() function. They then error because pytest cannot run them.<br>
<br>
There are — as far as I can tell — normal libtbx tests (they are registered in run_tests.py). Is there any reason they do not follow the typical naming convention?<br>
<br>
Changing their filenames and modifying run_tests.py accordingly seems to lead to the same behaviour when running tests.<br>
<br>
Is there any reason they should not be renamed from “test_*.py” to “tst_*.py”?<br>
<br>
Thanks,<br>
Nick<br>
<br>
<br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&lt;mailto:<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&gt;<br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&lt;mailto:<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>&gt;<br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br>
<br>
-- <br>
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <br>
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</blockquote></div>