Skip to content

Add support for testing Django-dependent modules

Sunil Mohan Adapa requested to merge BobGirard:unit-tests-2 into master

Created by: BobGirard

This pull request primarily adds support for testing Django-dependent production modules.

  • The Django settings file plinth/tests/data/django_test_settings.py has been added, to be used for testing purposes only.
  • The utility module plinth/tests/runtests.py has been added, which sets up the Django test environment and invokes the Django test runner to execute the specified test suite.
  • setup.py has been modified to specify runtests.py as the project test suite.
  • plinth/tests/coverage/coverage.py has been modified to use runtests.py to run all of the project tests.

With Django test support now provided, a new test module (test_kvstore.py) has been added, and two existing test modules (test_context_processors.py and test_menu.py) have been modified to enable tests that were previously skipped because of the lack of Django test support.

Merge request reports

Loading