Example #1
0
 def test_includes_live_jobs(self):
     job = make_job_listing_page('Job', live=True)
     qs = JobListingTable().get_queryset({})
     self.assertTrue(qs.exists())
     self.assertEqual(job.title, qs[0].title)
Example #2
0
 def test_includes_live_jobs(self):
     job = make_job_listing_page('Job', live=True)
     qs = JobListingTable().get_queryset({})
     self.assertTrue(qs.exists())
     self.assertEqual(job.title, qs[0].title)
Example #3
0
 def test_excludes_draft_jobs(self):
     make_job_listing_page('Job', live=False)
     qs = JobListingTable().get_queryset({})
     self.assertFalse(qs.exists())
Example #4
0
 def test_excludes_draft_jobs(self):
     make_job_listing_page('Job', live=False)
     qs = JobListingTable().get_queryset({})
     self.assertFalse(qs.exists())