Mercurial > libervia-backend
diff tests/e2e/run_e2e.py @ 4227:dfccc90cacc6
tests: fix and update tests:
- update code to newer version of `sh`
- update code to newer version of `selenium`
- update names of OMEMO algorithms
- fix paths and names used to mount source to the test container
- skip modules using `Gst` and `PyQt` when they are not available.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Mar 2024 17:31:56 +0100 |
parents | 4b842c1fb686 |
children |
line wrap: on
line diff
--- a/tests/e2e/run_e2e.py Tue Mar 05 17:31:56 2024 +0100 +++ b/tests/e2e/run_e2e.py Tue Mar 05 17:31:56 2024 +0100 @@ -26,7 +26,7 @@ import sh import io import sat_templates -import libervia +from libervia import web from libervia.backend.core import exceptions from libervia.backend.tools.common import regex import yaml @@ -145,34 +145,34 @@ keep_containers = keep_profiles = keep_vnc = visual = True for p in Path.cwd().parents: - package_path = p / "sat" + package_path = p / "libervia" docker_path = p / "docker" if package_path.is_dir() and docker_path.is_dir(): backend_root_path = p break else: raise exceptions.NotFound( - "Can't find root of SàT code, are you sure that you are running the test " - "from the backend repository?" + "Can't find root of Libervia code, are you sure that you are running the " + "test from the backend repository?" ) - libervia_web_path = Path(libervia.__file__).parent.resolve() + libervia_web_path = Path(web.__file__).parent.resolve() libervia_web_root_path = libervia_web_path.parent if (libervia_web_root_path / ".hg").is_dir(): libervia_web_source = libervia_web_root_path libervia_web_target = "/src/libervia-web" else: libervia_web_source = libervia_web_path - libervia_web_target = "/src/libervia-web/libervia" + libervia_web_target = "/src/libervia-web/libervia/web" sat_templates_path = Path(sat_templates.__file__).parent.resolve() sat_templates_root_path = sat_templates_path.parent if (sat_templates_root_path / ".hg").is_dir(): - sat_templates_source = sat_templates_root_path - sat_templates_target = "/src/libervia-templates" + libervia_templates_source = sat_templates_root_path + libervia_templates_target = "/src/libervia-templates" else: - sat_templates_source = sat_templates_path - sat_templates_target = "/src/libervia-templates/sat_templates" + libervia_templates_source = sat_templates_path + libervia_templates_target = "/src/libervia-templates/sat_templates" compose_e2e_path = docker_path / "docker-compose-e2e.yml" if not compose_e2e_path.is_file(): @@ -201,8 +201,8 @@ target: {libervia_web_target} read_only: true - type: bind - source: {sat_templates_source} - target: {sat_templates_target} + source: {libervia_templates_source} + target: {libervia_templates_target} read_only: true """ ),