File: settings.py

package info (click to toggle)
lava 2024.09-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 29,616 kB
  • sloc: python: 79,650; javascript: 16,875; sh: 1,364; makefile: 336
file content (22 lines) | stat: -rw-r--r-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (C) 2023 Collabora Limited
#
# Author: Igor Ponomarev <igor.ponomarev@collabora.com>
#
# SPDX-License-Identifier: GPL-2.0-or-later
from pathlib import Path

import lava_server.settings.dev

base_tests_path = Path(__file__).parent

tests_settings = {
    k: v for k, v in vars(lava_server.settings.dev).items() if k.isupper()
}

tests_settings["DEVICES_PATH"] = str(base_tests_path / "lava_scheduler_app/devices")
tests_settings["HEALTH_CHECKS_PATH"] = str(
    base_tests_path / "lava_scheduler_app/health-checks"
)
tests_settings["PASSWORD_HASHERS"] = ["django.contrib.auth.hashers.MD5PasswordHasher"]

globals().update(**tests_settings)