File: utils.py

package info (click to toggle)
python-userpath 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: python: 771; makefile: 21; sh: 16
file content (11 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
import os
from base64 import urlsafe_b64encode

import pytest

ON_WINDOWS_CI = 'APPVEYOR' in os.environ
SKIP_WINDOWS_CI = pytest.mark.skipif(ON_WINDOWS_CI, reason='Tests not run on Windows CI')


def get_random_path():
    return urlsafe_b64encode(os.urandom(5)).decode()