from django.test.runner import DiscoverRunner

from behave_django.environment import BehaveHooksMixin
from behave_django.testcase import (BehaviorDrivenTestCase,
                                    ExistingDatabaseTestCase)


class BehaviorDrivenTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the BehaviorDrivenTestCase
    """
    testcase_class = BehaviorDrivenTestCase


class ExistingDatabaseTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the ExistingDatabaseTestCase

    This test runner nullifies Django's test database setup methods. Using this
    test runner would make your tests run with the default configured database
    in settings.py.
    """
    testcase_class = ExistingDatabaseTestCase

    def setup_databases(*args, **kwargs):
        pass

    def teardown_databases(*args, **kwargs):
        pass

from django.test.runner import DiscoverRunner

from behave_django.environment import BehaveHooksMixin
from behave_django.testcase import (BehaviorDrivenTestCase,
                                    ExistingDatabaseTestCase)


class BehaviorDrivenTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the BehaviorDrivenTestCase
    """
    testcase_class = BehaviorDrivenTestCase


class ExistingDatabaseTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the ExistingDatabaseTestCase

    This test runner nullifies Django's test database setup methods. Using this
    test runner would make your tests run with the default configured database
    in settings.py.
    """
    testcase_class = ExistingDatabaseTestCase

    def setup_databases(self, **kwargs):
        pass

    def teardown_databases(self, old_config, **kwargs):
        pass

Fix Landscape complaint "Method has no argument"
Fix Landscape complaint "Method has no argument"

  from django.test.runner import DiscoverRunner
  
  from behave_django.environment import BehaveHooksMixin
  from behave_django.testcase import (BehaviorDrivenTestCase,
                                      ExistingDatabaseTestCase)
  
  
  class BehaviorDrivenTestRunner(DiscoverRunner, BehaveHooksMixin):
      """
      Test runner that uses the BehaviorDrivenTestCase
      """
      testcase_class = BehaviorDrivenTestCase
  
  
  class ExistingDatabaseTestRunner(DiscoverRunner, BehaveHooksMixin):
      """
      Test runner that uses the ExistingDatabaseTestCase
  
      This test runner nullifies Django's test database setup methods. Using this
      test runner would make your tests run with the default configured database
      in settings.py.
      """
      testcase_class = ExistingDatabaseTestCase
  
-     def setup_databases(*args, **kwargs):
+     def setup_databases(self, **kwargs):
          pass
  
-     def teardown_databases(*args, **kwargs):
+     def teardown_databases(self, old_config, **kwargs):
          pass
  
Fix Landscape complaint "Method has no argument"
## Code Before:
from django.test.runner import DiscoverRunner

from behave_django.environment import BehaveHooksMixin
from behave_django.testcase import (BehaviorDrivenTestCase,
                                    ExistingDatabaseTestCase)


class BehaviorDrivenTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the BehaviorDrivenTestCase
    """
    testcase_class = BehaviorDrivenTestCase


class ExistingDatabaseTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the ExistingDatabaseTestCase

    This test runner nullifies Django's test database setup methods. Using this
    test runner would make your tests run with the default configured database
    in settings.py.
    """
    testcase_class = ExistingDatabaseTestCase

    def setup_databases(*args, **kwargs):
        pass

    def teardown_databases(*args, **kwargs):
        pass

## Instruction:
Fix Landscape complaint "Method has no argument"
## Code After:
from django.test.runner import DiscoverRunner

from behave_django.environment import BehaveHooksMixin
from behave_django.testcase import (BehaviorDrivenTestCase,
                                    ExistingDatabaseTestCase)


class BehaviorDrivenTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the BehaviorDrivenTestCase
    """
    testcase_class = BehaviorDrivenTestCase


class ExistingDatabaseTestRunner(DiscoverRunner, BehaveHooksMixin):
    """
    Test runner that uses the ExistingDatabaseTestCase

    This test runner nullifies Django's test database setup methods. Using this
    test runner would make your tests run with the default configured database
    in settings.py.
    """
    testcase_class = ExistingDatabaseTestCase

    def setup_databases(self, **kwargs):
        pass

    def teardown_databases(self, old_config, **kwargs):
        pass
