old_contents: from unittest.mock import patch
  
  from django.test import TestCase
  
  from conversion_job.models import Extent, ConversionJob, GISFormat
  from converters import converter_options
  from shared import ConversionProgress
  from rq.job import JobStatus as RQJobStatus
  
  
  class Empty:
      pass
  
  
  class DjangoRQGetQueueStub:
      def fetch_job(*args, **kwargs):
          rq_job_mock = Empty()
          rq_job_mock.status = RQJobStatus.STARTED
          rq_job_mock.meta = {'progress': ConversionProgress.STARTED}
          return rq_job_mock
  
  
  def django_rq_get_queue_stub():
      django_rq_get_queue = DjangoRQGetQueueStub()
      return django_rq_get_queue
  
  
  def get_conversion_job(*args, **kwargs):
      return ConversionJob.objects.first()
  
  
  class ConversionJobStatusViewSetTest(TestCase):
      def setUp(self):
          self.extent = Extent.objects.create(west=0, south=0, east=0, north=0)
          self.conversion_job = ConversionJob.objects.create(extent=self.extent)
          self.gis_format_1 = GISFormat.objects.create(
              conversion_job=self.conversion_job,
              format=converter_options.get_output_formats()[0]
          )
          self.gis_format_2 = GISFormat.objects.create(
              conversion_job=self.conversion_job,
              format=converter_options.get_output_formats()[3]
          )
  
      @patch('django_rq.get_queue', django_rq_get_queue_stub)
      @patch('conversion_job.views.ConversionJobStatusViewSet.get_object', get_conversion_job)
      def test_conversion_progress_when_created_is_new(self, *args, **kwargs):
          conversion_job = get_conversion_job()
  
          self.assertEqual(
              min(conversion_job.gis_formats.values_list('progress', flat=True)),
              ConversionProgress.NEW.value
          )
  
new_contents: from unittest.mock import patch
  
  from django.test import TestCase
  
  from conversion_job.models import Extent, ConversionJob, GISFormat
  from converters import converter_options
  from shared import ConversionProgress
  from rq.job import JobStatus as RQJobStatus
  
  
  class Empty:
      pass
  
  
  class DjangoRQGetQueueStub:
      def fetch_job(*args, **kwargs):
          rq_job_mock = Empty()
          rq_job_mock.status = RQJobStatus.STARTED
          rq_job_mock.meta = {'progress': ConversionProgress.STARTED}
          return rq_job_mock
  
  
  def django_rq_get_queue_stub():
      django_rq_get_queue = DjangoRQGetQueueStub()
      return django_rq_get_queue
  
  
  def get_conversion_job(*args, **kwargs):
      return ConversionJob.objects.first()
  
  
  class ConversionJobStatusViewSetTest(TestCase):
      def setUp(self):
          self.extent = Extent.objects.create(west=0, south=0, east=0, north=0)
          self.conversion_job = ConversionJob.objects.create(extent=self.extent)
          self.gis_format_1 = GISFormat.objects.create(
              conversion_job=self.conversion_job,
              format=converter_options.get_output_formats()[0]
          )
          self.gis_format_2 = GISFormat.objects.create(
              conversion_job=self.conversion_job,
              format=converter_options.get_output_formats()[3]
          )
  
      @patch('django_rq.get_queue', django_rq_get_queue_stub)
      @patch('conversion_job.views.ConversionJobStatusViewSet.get_object', get_conversion_job)
      def test_conversion_progress_when_created_is_new(self, *args, **kwargs):
          conversion_job = get_conversion_job()
          model_progress_list = list(conversion_job.gis_formats.values_list('progress', flat=True))
          self.assertListEqual(
              model_progress_list,
              [ConversionProgress.NEW.value for _ in range(len(model_progress_list))]
          )
          self.assertEqual(conversion_job.progress, dict(ConversionProgress.choices())[ConversionProgress.NEW.value])
  
subject: make test checking the progress method and the result list, not calculate them in the test.