mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-12 03:38:17 -05:00
* build(deps): update cvxpy version from 1.5.3 to 1.6.5 in requirements * Add ECOS solver and improve solver handling for stability Added ECOS to requirements and enhanced compatibility with cvxpy solvers by specifying 'order' for matrix reshaping. Updated solver configurations in rocket landing and pendulum control for consistency and reliability. Improved test behavior by enforcing stricter warning handling in pytest.
14 lines
379 B
Python
14 lines
379 B
Python
"""Path hack to make tests work."""
|
|
import sys
|
|
import os
|
|
import pytest
|
|
|
|
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.append(TEST_DIR) # to import this file from test code.
|
|
ROOT_DIR = os.path.dirname(TEST_DIR)
|
|
sys.path.append(ROOT_DIR)
|
|
|
|
|
|
def run_this_test(file):
|
|
pytest.main(args=["-W", "error", "-Werror", "--pythonwarnings=error", os.path.abspath(file)])
|