Files @ 1927a1812033
Branch filter:

Location: oxrlib-fork/tests/__init__.py

Brett Smith
loaders: Add LoaderChain.
import datetime
import pathlib
import random

import pytest

TEST_DIR = pathlib.Path(__file__).parent

def relpath(*parts):
    return TEST_DIR / pathlib.Path(*parts)

@pytest.fixture
def any_date():
    return datetime.date.today() - datetime.timedelta(days=730 - random.randint(0, 365))