
# Imports #####################################################################

from huey import djhuey

from instance.models.server import OpenStackServer
from instance.tests.base import TestCase


# Tests #######################################################################

class IntegrationTestCase(TestCase):
    """
    Base class for API tests
    """
    def setUp(self):
        # Override the environment setting - always run task in the same process
        djhuey.HUEY.always_eager = True

    def tearDown(self):
        # Ensure we don't leave any VM running
        OpenStackServer.objects.terminate()


# Imports #####################################################################

from huey import djhuey

from instance.models.server import OpenStackServer
from instance.tests.base import TestCase


# Tests #######################################################################

class IntegrationTestCase(TestCase):
    """
    Base class for API tests
    """
    def setUp(self):
        super().setUp()
        # Override the environment setting - always run task in the same process
        djhuey.HUEY.always_eager = True

    def tearDown(self):
        OpenStackServer.objects.terminate()
        super().tearDown()

Make sure integration tests call super.
Make sure integration tests call super.

  
  # Imports #####################################################################
  
  from huey import djhuey
  
  from instance.models.server import OpenStackServer
  from instance.tests.base import TestCase
  
  
  # Tests #######################################################################
  
  class IntegrationTestCase(TestCase):
      """
      Base class for API tests
      """
      def setUp(self):
+         super().setUp()
          # Override the environment setting - always run task in the same process
          djhuey.HUEY.always_eager = True
  
      def tearDown(self):
-         # Ensure we don't leave any VM running
          OpenStackServer.objects.terminate()
+         super().tearDown()
  
Make sure integration tests call super.
## Code Before:

# Imports #####################################################################

from huey import djhuey

from instance.models.server import OpenStackServer
from instance.tests.base import TestCase


# Tests #######################################################################

class IntegrationTestCase(TestCase):
    """
    Base class for API tests
    """
    def setUp(self):
        # Override the environment setting - always run task in the same process
        djhuey.HUEY.always_eager = True

    def tearDown(self):
        # Ensure we don't leave any VM running
        OpenStackServer.objects.terminate()

## Instruction:
Make sure integration tests call super.
## Code After:

# Imports #####################################################################

from huey import djhuey

from instance.models.server import OpenStackServer
from instance.tests.base import TestCase


# Tests #######################################################################

class IntegrationTestCase(TestCase):
    """
    Base class for API tests
    """
    def setUp(self):
        super().setUp()
        # Override the environment setting - always run task in the same process
        djhuey.HUEY.always_eager = True

    def tearDown(self):
        OpenStackServer.objects.terminate()
        super().tearDown()
