"""
Configure pytest
"""
from pathlib import Path
import os
import pytest
import agx
from agxSDK import Simulation

# pylint: disable=unused-argument,redefined-outer-name

@pytest.fixture(scope="module")
def agxinit():
    return agx.AutoInit()

@pytest.fixture(scope="module")
def sim(agxinit):
    return Simulation()

@pytest.fixture(scope="session")
def pyroot():
    return os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))

@pytest.fixture(scope="session")
def models(pyroot):
    return Path(f"{pyroot}/data/openplx/models")

@pytest.fixture(scope="session")
def tutorials(pyroot):
    return Path(f"{pyroot}/data/openplx/tutorials")