oxrlib/tests/__init__.py
2017-05-12 07:40:27 -04:00

14 lines
289 B
Python

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))