14 lines
289 B
Python
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))
|