Move common fixture to testlib #361
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
__version__ = "2.0.1"
|
||||
|
||||
from .fixtures import configure_testlib, hosting, temp_directory
|
||||
from .fixtures import configure_testlib, hosting, session_start_time, temp_directory
|
||||
from .hooks import pytest_add_frostfs_marker, pytest_collection_modifyitems
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
import os
|
||||
from datetime import datetime
|
||||
from importlib.metadata import entry_points
|
||||
|
||||
import pytest
|
||||
|
@ -11,6 +12,12 @@ from frostfs_testlib.resources.common import ASSETS_DIR, HOSTING_CONFIG_FILE
|
|||
from frostfs_testlib.storage import get_service_registry
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def session_start_time():
|
||||
start_time = datetime.utcnow()
|
||||
return start_time
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def configure_testlib():
|
||||
reporter.get_reporter().register_handler(reporter.AllureHandler())
|
||||
|
|
Loading…
Add table
Reference in a new issue