diff options
Diffstat (limited to 'bitbake/lib/toaster/tests/browser')
18 files changed, 20 insertions, 19 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py index fba627bd21..8423d3dab2 100644 --- a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py +++ b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | import re | 10 | import re |
11 | 11 | ||
12 | from django.core.urlresolvers import reverse | 12 | from django.urls import reverse |
13 | from django.utils import timezone | 13 | from django.utils import timezone |
14 | from tests.browser.selenium_helpers import SeleniumTestCase | 14 | from tests.browser.selenium_helpers import SeleniumTestCase |
15 | 15 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_all_projects_page.py b/bitbake/lib/toaster/tests/browser/test_all_projects_page.py index afd2d3566e..15b03400f9 100644 --- a/bitbake/lib/toaster/tests/browser/test_all_projects_page.py +++ b/bitbake/lib/toaster/tests/browser/test_all_projects_page.py | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | import re | 10 | import re |
11 | 11 | ||
12 | from django.core.urlresolvers import reverse | 12 | from django.urls import reverse |
13 | from django.utils import timezone | 13 | from django.utils import timezone |
14 | from tests.browser.selenium_helpers import SeleniumTestCase | 14 | from tests.browser.selenium_helpers import SeleniumTestCase |
15 | 15 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py index d972aff1bd..efcd89b346 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | 12 | ||
13 | from tests.browser.selenium_helpers import SeleniumTestCase | 13 | from tests.browser.selenium_helpers import SeleniumTestCase |
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py index e2623e8ad3..c6226d60eb 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | 12 | ||
13 | from tests.browser.selenium_helpers import SeleniumTestCase | 13 | from tests.browser.selenium_helpers import SeleniumTestCase |
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_recipes.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_recipes.py index c542d45f1e..9d85ba990c 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_recipes.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_recipes.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | from orm.models import Project, Build, Recipe, Task, Layer, Layer_Version | 13 | from orm.models import Project, Build, Recipe, Task, Layer, Layer_Version |
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_tasks.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_tasks.py index 22acb470ac..7fdf75d0a8 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_tasks.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_tasks.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | from orm.models import Project, Build, Recipe, Task, Layer, Layer_Version | 13 | from orm.models import Project, Build, Recipe, Task, Layer, Layer_Version |
diff --git a/bitbake/lib/toaster/tests/browser/test_js_unit_tests.py b/bitbake/lib/toaster/tests/browser/test_js_unit_tests.py index e8b4295b86..e6163bb3b2 100644 --- a/bitbake/lib/toaster/tests/browser/test_js_unit_tests.py +++ b/bitbake/lib/toaster/tests/browser/test_js_unit_tests.py | |||
@@ -11,7 +11,7 @@ | |||
11 | Run the js unit tests | 11 | Run the js unit tests |
12 | """ | 12 | """ |
13 | 13 | ||
14 | from django.core.urlresolvers import reverse | 14 | from django.urls import reverse |
15 | from tests.browser.selenium_helpers import SeleniumTestCase | 15 | from tests.browser.selenium_helpers import SeleniumTestCase |
16 | import logging | 16 | import logging |
17 | 17 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_landing_page.py b/bitbake/lib/toaster/tests/browser/test_landing_page.py index 07901989d5..8bb64b9f3e 100644 --- a/bitbake/lib/toaster/tests/browser/test_landing_page.py +++ b/bitbake/lib/toaster/tests/browser/test_landing_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # Copyright (C) 2013-2016 Intel Corporation | 7 | # Copyright (C) 2013-2016 Intel Corporation |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | 13 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py b/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py index f81e696a26..71bdd2aafd 100644 --- a/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py +++ b/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # Copyright (C) 2013-2016 Intel Corporation | 7 | # Copyright (C) 2013-2016 Intel Corporation |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from tests.browser.selenium_helpers import SeleniumTestCase | 11 | from tests.browser.selenium_helpers import SeleniumTestCase |
12 | 12 | ||
13 | from orm.models import Layer, Layer_Version, Project, LayerSource, Release | 13 | from orm.models import Layer, Layer_Version, Project, LayerSource, Release |
diff --git a/bitbake/lib/toaster/tests/browser/test_most_recent_builds_states.py b/bitbake/lib/toaster/tests/browser/test_most_recent_builds_states.py index 15d25dc3a9..7844aaa395 100644 --- a/bitbake/lib/toaster/tests/browser/test_most_recent_builds_states.py +++ b/bitbake/lib/toaster/tests/browser/test_most_recent_builds_states.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # Copyright (C) 2013-2016 Intel Corporation | 7 | # Copyright (C) 2013-2016 Intel Corporation |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | from tests.browser.selenium_helpers_base import Wait | 13 | from tests.browser.selenium_helpers_base import Wait |
diff --git a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py index 0aa3b7a774..9906ae42a9 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from tests.browser.selenium_helpers import SeleniumTestCase | 11 | from tests.browser.selenium_helpers import SeleniumTestCase |
12 | 12 | ||
13 | from orm.models import BitbakeVersion, Release, Project, ProjectLayer, Layer | 13 | from orm.models import BitbakeVersion, Release, Project, ProjectLayer, Layer |
diff --git a/bitbake/lib/toaster/tests/browser/test_new_project_page.py b/bitbake/lib/toaster/tests/browser/test_new_project_page.py index 8e56bb043e..e20a1f686e 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_project_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_project_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from tests.browser.selenium_helpers import SeleniumTestCase | 11 | from tests.browser.selenium_helpers import SeleniumTestCase |
12 | from selenium.webdriver.support.ui import Select | 12 | from selenium.webdriver.support.ui import Select |
13 | from selenium.common.exceptions import InvalidElementStateException | 13 | from selenium.common.exceptions import InvalidElementStateException |
diff --git a/bitbake/lib/toaster/tests/browser/test_project_builds_page.py b/bitbake/lib/toaster/tests/browser/test_project_builds_page.py index 47fb10b262..51717e72d4 100644 --- a/bitbake/lib/toaster/tests/browser/test_project_builds_page.py +++ b/bitbake/lib/toaster/tests/browser/test_project_builds_page.py | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | import re | 10 | import re |
11 | 11 | ||
12 | from django.core.urlresolvers import reverse | 12 | from django.urls import reverse |
13 | from django.utils import timezone | 13 | from django.utils import timezone |
14 | from tests.browser.selenium_helpers import SeleniumTestCase | 14 | from tests.browser.selenium_helpers import SeleniumTestCase |
15 | 15 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_project_config_page.py b/bitbake/lib/toaster/tests/browser/test_project_config_page.py index eaf27a1e78..944bcb2631 100644 --- a/bitbake/lib/toaster/tests/browser/test_project_config_page.py +++ b/bitbake/lib/toaster/tests/browser/test_project_config_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from tests.browser.selenium_helpers import SeleniumTestCase | 11 | from tests.browser.selenium_helpers import SeleniumTestCase |
12 | 12 | ||
13 | from orm.models import BitbakeVersion, Release, Project, ProjectVariable | 13 | from orm.models import BitbakeVersion, Release, Project, ProjectVariable |
@@ -213,4 +213,5 @@ class TestProjectConfigsPage(SeleniumTestCase): | |||
213 | 213 | ||
214 | hidden_element = self.driver.find_element_by_id('hintError-sstate_dir') | 214 | hidden_element = self.driver.find_element_by_id('hintError-sstate_dir') |
215 | self.assertEqual(hidden_element.is_displayed(), False, | 215 | self.assertEqual(hidden_element.is_displayed(), False, |
216 | 'sstate directory path valid but treated as invalid') \ No newline at end of file | 216 | 'sstate directory path valid but treated as invalid') |
217 | |||
diff --git a/bitbake/lib/toaster/tests/browser/test_project_page.py b/bitbake/lib/toaster/tests/browser/test_project_page.py index 8b5e1b6739..546293f1ee 100644 --- a/bitbake/lib/toaster/tests/browser/test_project_page.py +++ b/bitbake/lib/toaster/tests/browser/test_project_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | 13 | ||
diff --git a/bitbake/lib/toaster/tests/browser/test_sample.py b/bitbake/lib/toaster/tests/browser/test_sample.py index f4ad670a36..b0067c21cd 100644 --- a/bitbake/lib/toaster/tests/browser/test_sample.py +++ b/bitbake/lib/toaster/tests/browser/test_sample.py | |||
@@ -16,7 +16,7 @@ New test files should follow this structure, should be named "test_*.py", | |||
16 | and should be in the same directory as this sample. | 16 | and should be in the same directory as this sample. |
17 | """ | 17 | """ |
18 | 18 | ||
19 | from django.core.urlresolvers import reverse | 19 | from django.urls import reverse |
20 | from tests.browser.selenium_helpers import SeleniumTestCase | 20 | from tests.browser.selenium_helpers import SeleniumTestCase |
21 | 21 | ||
22 | class TestSample(SeleniumTestCase): | 22 | class TestSample(SeleniumTestCase): |
diff --git a/bitbake/lib/toaster/tests/browser/test_task_page.py b/bitbake/lib/toaster/tests/browser/test_task_page.py index 26f3dca83c..011b5854ae 100644 --- a/bitbake/lib/toaster/tests/browser/test_task_page.py +++ b/bitbake/lib/toaster/tests/browser/test_task_page.py | |||
@@ -7,7 +7,7 @@ | |||
7 | # SPDX-License-Identifier: GPL-2.0-only | 7 | # SPDX-License-Identifier: GPL-2.0-only |
8 | # | 8 | # |
9 | 9 | ||
10 | from django.core.urlresolvers import reverse | 10 | from django.urls import reverse |
11 | from django.utils import timezone | 11 | from django.utils import timezone |
12 | from tests.browser.selenium_helpers import SeleniumTestCase | 12 | from tests.browser.selenium_helpers import SeleniumTestCase |
13 | from orm.models import Project, Build, Layer, Layer_Version, Recipe, Target | 13 | from orm.models import Project, Build, Layer, Layer_Version, Recipe, Target |
diff --git a/bitbake/lib/toaster/tests/browser/test_toastertable_ui.py b/bitbake/lib/toaster/tests/browser/test_toastertable_ui.py index ef78cbb1ee..e82d5ec654 100644 --- a/bitbake/lib/toaster/tests/browser/test_toastertable_ui.py +++ b/bitbake/lib/toaster/tests/browser/test_toastertable_ui.py | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | from datetime import datetime | 10 | from datetime import datetime |
11 | 11 | ||
12 | from django.core.urlresolvers import reverse | 12 | from django.urls import reverse |
13 | from django.utils import timezone | 13 | from django.utils import timezone |
14 | from tests.browser.selenium_helpers import SeleniumTestCase | 14 | from tests.browser.selenium_helpers import SeleniumTestCase |
15 | from orm.models import BitbakeVersion, Release, Project, Build | 15 | from orm.models import BitbakeVersion, Release, Project, Build |