selenium_helpers.py 802 B

1234567891011121314151617181920212223
  1. #! /usr/bin/env python
  2. # ex:ts=4:sw=4:sts=4:et
  3. # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
  4. #
  5. # BitBake Toaster Implementation
  6. #
  7. # Copyright (C) 2013-2016 Intel Corporation
  8. #
  9. # SPDX-License-Identifier: GPL-2.0-only
  10. #
  11. # The Wait class and some of SeleniumDriverHelper and SeleniumTestCase are
  12. # modified from Patchwork, released under the same licence terms as Toaster:
  13. # https://github.com/dlespiau/patchwork/blob/master/patchwork/tests.browser.py
  14. """
  15. Helper methods for creating Toaster Selenium tests which run within
  16. the context of Django unit tests.
  17. """
  18. from django.contrib.staticfiles.testing import StaticLiveServerTestCase
  19. from tests.browser.selenium_helpers_base import SeleniumTestCaseBase
  20. class SeleniumTestCase(SeleniumTestCaseBase, StaticLiveServerTestCase):
  21. pass