import warnings

from django.test.runner import DiscoverRunner
from django.utils.deprecation import RemovedInDjango20Warning, RemovedInDjango110Warning


class DevilryTestRunner(DiscoverRunner):
    def setup_test_environment(self, **kwargs):
        # warnings.filterwarnings('ignore', category=RemovedInDjango)
        super(DevilryTestRunner, self).setup_test_environment(**kwargs)
        warnings.filterwarnings('ignore', category=RemovedInDjango20Warning)
        warnings.filterwarnings('ignore', category=DeprecationWarning)
        warnings.filterwarnings('ignore', category=RemovedInDjango110Warning)

import warnings

from django.test.runner import DiscoverRunner
from django.utils.deprecation import RemovedInDjango20Warning


class DevilryTestRunner(DiscoverRunner):
    def setup_test_environment(self, **kwargs):
        # warnings.filterwarnings('ignore', category=RemovedInDjango)
        super(DevilryTestRunner, self).setup_test_environment(**kwargs)
        warnings.filterwarnings('ignore', category=RemovedInDjango20Warning)
        warnings.filterwarnings('ignore', category=DeprecationWarning)

Update warning ignores for Django 1.10.
project...DevilryTestRunner: Update warning ignores for Django 1.10.

  import warnings
  
  from django.test.runner import DiscoverRunner
- from django.utils.deprecation import RemovedInDjango20Warning, RemovedInDjango110Warning
+ from django.utils.deprecation import RemovedInDjango20Warning
  
  
  class DevilryTestRunner(DiscoverRunner):
      def setup_test_environment(self, **kwargs):
          # warnings.filterwarnings('ignore', category=RemovedInDjango)
          super(DevilryTestRunner, self).setup_test_environment(**kwargs)
          warnings.filterwarnings('ignore', category=RemovedInDjango20Warning)
          warnings.filterwarnings('ignore', category=DeprecationWarning)
-         warnings.filterwarnings('ignore', category=RemovedInDjango110Warning)
  
Update warning ignores for Django 1.10.
## Code Before:
import warnings

from django.test.runner import DiscoverRunner
from django.utils.deprecation import RemovedInDjango20Warning, RemovedInDjango110Warning


class DevilryTestRunner(DiscoverRunner):
    def setup_test_environment(self, **kwargs):
        # warnings.filterwarnings('ignore', category=RemovedInDjango)
        super(DevilryTestRunner, self).setup_test_environment(**kwargs)
        warnings.filterwarnings('ignore', category=RemovedInDjango20Warning)
        warnings.filterwarnings('ignore', category=DeprecationWarning)
        warnings.filterwarnings('ignore', category=RemovedInDjango110Warning)

## Instruction:
Update warning ignores for Django 1.10.
## Code After:
import warnings

from django.test.runner import DiscoverRunner
from django.utils.deprecation import RemovedInDjango20Warning


class DevilryTestRunner(DiscoverRunner):
    def setup_test_environment(self, **kwargs):
        # warnings.filterwarnings('ignore', category=RemovedInDjango)
        super(DevilryTestRunner, self).setup_test_environment(**kwargs)
        warnings.filterwarnings('ignore', category=RemovedInDjango20Warning)
        warnings.filterwarnings('ignore', category=DeprecationWarning)
