<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Petar Pilipovic</title>
    <description>The latest articles on DEV Community by Petar Pilipovic (@coopsess).</description>
    <link>https://dev.to/coopsess</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F54582%2F78edb695-ed3a-4836-9d35-edb8d6659cbc.jpeg</url>
      <title>DEV Community: Petar Pilipovic</title>
      <link>https://dev.to/coopsess</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/coopsess"/>
    <language>en</language>
    <item>
      <title>Testing Models, ModelMangers in Django</title>
      <dc:creator>Petar Pilipovic</dc:creator>
      <pubDate>Thu, 23 Aug 2018 18:20:10 +0000</pubDate>
      <link>https://dev.to/coopsess/testing-models-modelmangers-in-django-275k</link>
      <guid>https://dev.to/coopsess/testing-models-modelmangers-in-django-275k</guid>
      <description>&lt;p&gt;Hello all, I'm a bit shocked on the lack of example on how to test models and model managers in Django.&lt;/p&gt;

&lt;p&gt;I tried to found out some nice examples on this topic, and I found it a bit challenging to found it out.&lt;/p&gt;

&lt;p&gt;For example there is this nice blog post from &lt;a href="https://bradmontgomery.net/blog/django-manager-testing-woes/"&gt;Brad Montgomery&lt;/a&gt;, also this article from &lt;a href="http://www.mattjmorrison.com/2011/09/mocking-django.html"&gt;Matt J Morrison&lt;/a&gt; and that is it, don't get me wrong they are nice but a bit outdated.&lt;/p&gt;

&lt;p&gt;Perhaps the best one so far is this &lt;a href="https://gist.github.com/vinyll/6103202"&gt;Advanced user inheritance with Django&lt;/a&gt; example.&lt;/p&gt;

&lt;p&gt;I know Django provides nice documentation on how to run tests, but I like to check other people examples.&lt;/p&gt;

&lt;p&gt;Where and how you guys found example on the testing when you need it?&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>python</category>
      <category>django</category>
      <category>unittesting</category>
    </item>
  </channel>
</rss>
