<div dir="ltr"><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">Hey,</span><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">I did the migration, here's my notes:</div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">- If you use "assert_equal" methods, the migration is easy, there is a library that does the most cases for you: <a href="https://github.com/pytest-dev/nose2pytest" style="color:rgb(126,87,194)">https://github.com/pytest-dev/nose2pytest</a> raise assertions would be a problem but there is not lots of them left.</div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"> - if you use eq_ (from nosetests.tools), you can simply replace them with assert_equal and go to step one, but when I did, it also changed "def __eq__" to "def __assert_eqal_" causing a mess (of course it does that, it was very stupid of me)</div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"> - The mark system in pytest is great (pytest.mark) Take advantage of it.</div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">I also would be happy to lend a hand in migrating specially in review, just ping me :)</div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px">Best</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 November 2017 at 19:34, Greg Grossmeier <span dir="ltr"><<a href="mailto:greg@wikimedia.org" target="_blank">greg@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(adding in qa@ list)<br>
<br>
<quote name="Kunal Mehta" date="2017-11-01" time="11:15:42 -0700"><br>
<div class="HOEnZb"><div class="h5">> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA512<br>
><br>
> Hi,<br>
><br>
> On 11/01/2017 10:53 AM, Grace Gellerman wrote:<br>
> > === Scoring Platform === ** Converted our tests from nosetests to<br>
> > pytest (Anyone else making the transition?) *** nosetests is<br>
> > under-maintained *** python community is moving towards pytest ***<br>
> > converting our repos was pretty straightforward<br>
><br>
> I didn't realize nose was in such a state :( They put a notice[1] on<br>
> their website, but I always skipped it.<br>
><br>
> pytest[2] claims that it's compatible with nose out of the box - was<br>
> that the experience you had as well?<br>
><br>
> Off the top of my head, Pywikibot, CI, and other miscellaneous<br>
> projects all use nose and should probably be migrated over to pytest.<br>
><br>
> [1] <a href="https://nose.readthedocs.io/en/latest/#note-to-users" rel="noreferrer" target="_blank">https://nose.readthedocs.io/<wbr>en/latest/#note-to-users</a><br>
> [2] <a href="https://docs.pytest.org/en/latest/" rel="noreferrer" target="_blank">https://docs.pytest.org/en/<wbr>latest/</a><br>
><br>
> - -- Legoktm<br>
> -----BEGIN PGP SIGNATURE-----<br>
><br>
> iQJLBAEBCgA1FiEE+<wbr>h6fmkHn9DUCyl1jUvyOe+23/<wbr>KIFAln6D0gXHGxlZ29rdG1A<br>
> bWVtYmVyLmZzZi5vcmcACgkQUvyOe+<wbr>23/KKbMw/+Nh/<wbr>tGRagrvZgJqHBZakvvAYE<br>
> IHCUFPTUhfQ4cQ++oUqDpblAxR/<wbr>FNO6BN2UQIrIh9gUylHCf/<wbr>hwZ3BToC5GGPFY5<br>
> D9Sgi/ce9v5dp3IIvNZq/<wbr>NZgb0DkityVkxWg8tiZJPwhJ6hTKw9<wbr>LjaPl++ee9Po/<br>
> 940WYy7UQ7L/<wbr>xwgy7rNJrViW0j4VD4mM7+<wbr>PVvxPuv6rovOpa/H0VMbSlEuoXQYFG<br>
> P2DPJE1f8B9tn/<wbr>xun6O6tveWdD7cdna2DVCXhFF+<wbr>Tldnpa+XtOerE3P+YBA8Gp/+<br>
> sRJZuDjbCljM0GCzYYVR00klp8xDFQ<wbr>JXn+ELWaE1E3pAitZQdjb1A+<wbr>xPmxagk1Up<br>
> ysqSc9nndVm6c59lkzdMcqz1myWyzL<wbr>Vho/<wbr>RBmRVAAm37Wv7F7tvxHufuwWe8QO/I<br>
> sUJsRXkH7/<wbr>TdsSzs8TU9YTZECE5QntTOM7gGgP4j<wbr>PQgiwZrHob9si1jDUaQMuFoC<br>
> i8U9dylhrh280VAJj9LRaoRaSb48Ln<wbr>6sZrCMdpCW8gt4UiRsUcSYCXbD45Ag<wbr>US9Z<br>
> 3oPLMEpt+<wbr>ESqDxJrBl9rgxyFZF19KhpeE3FPCvl<wbr>AMZQShLZCAlRdDozczV4nFSHC<br>
> zhRmuRITmnDomf8prk7NwFSM0q601k<wbr>TOgVqVZiBn9AY3Axvsa1TS1HM582y4<wbr>rJ8U<br>
> O+eQbaSCyiI6HTE0lcc=<br>
> =4lTI<br>
> -----END PGP SIGNATURE-----<br>
><br>
> ______________________________<wbr>_________________<br>
> Wikitech-l mailing list<br>
> <a href="mailto:Wikitech-l@lists.wikimedia.org">Wikitech-l@lists.wikimedia.org</a><br>
> <a href="https://lists.wikimedia.org/mailman/listinfo/wikitech-l" rel="noreferrer" target="_blank">https://lists.wikimedia.org/<wbr>mailman/listinfo/wikitech-l</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
| Greg Grossmeier            GPG: B2FA 27B1 F7EB D327 6B8E |<br>
| Release Team Manager            A18D 1138 8E47 FAC8 1C7D |<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Wikitech-l mailing list<br>
<a href="mailto:Wikitech-l@lists.wikimedia.org">Wikitech-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/wikitech-l" rel="noreferrer" target="_blank">https://lists.wikimedia.org/<wbr>mailman/listinfo/wikitech-l</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Amir Sarabadani<div>Software Engineer<br><br>Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin<br>Tel. (030) 219 158 26-0<br><a href="http://wikimedia.de" target="_blank">http://wikimedia.de</a><br><br>Stellen Sie sich eine Welt vor, in der jeder Mensch an der Menge allen Wissens frei teilhaben kann. Helfen Sie uns dabei!<br><a href="http://spenden.wikimedia.de/" target="_blank">http://spenden.wikimedia.de/</a><br><br>Wikimedia Deutschland – Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207.</div></div></div>
</div>