File: common.py

package info (click to toggle)
pytile 2024.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 428 kB
  • sloc: python: 848; sh: 46; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 653 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
23
24
"""Define common test utilities."""

import os

TILE_CLIENT_UUID = "2cc56adc-b96a-4293-9b94-eda716e0aa17"
TILE_EMAIL = "user@email.com"
TILE_PASSWORD = "12345"  # noqa: S105
TILE_TILE_NAME = "Wallet"
TILE_TILE_UUID = "19264d2dffdbca32"
TILE_USER_UUID = "fd0c10a5-d0f7-4619-9bce-5b2cb7a6754b"


def load_fixture(filename: str) -> str:
    """Load a fixture.

    Args:
        filename: The filename of the fixtures/ file to load.

    Returns:
        A string containing the contents of the file.
    """
    path = os.path.join(os.path.dirname(__file__), "fixtures", filename)
    with open(path, encoding="utf-8") as fptr:
        return fptr.read()