mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 15:37:44 +00:00
fix: add hypothesis to test deps and fix missing imports in deep tests
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
# Requirements for test.
|
# Requirements for test.
|
||||||
coverage
|
coverage
|
||||||
|
hypothesis
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
"""Deep property-based tests for the unified backtest engine.
|
"""Deep property-based tests for the unified backtest engine.
|
||||||
|
|
||||||
Extends test_vbt_backtest.py with hypothesis-based property tests,
|
Extends test_vbt_backtest.py with hypothesis-based property tests,
|
||||||
@@ -10,8 +11,8 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from hypothesis import assume, given, settings
|
|
||||||
from hypothesis import strategies as st
|
from hypothesis import strategies as st
|
||||||
|
from hypothesis import assume, given, settings
|
||||||
from hypothesis.extra.numpy import arrays
|
from hypothesis.extra.numpy import arrays
|
||||||
|
|
||||||
from rdagent.components.backtesting.vbt_backtest import (
|
from rdagent.components.backtesting.vbt_backtest import (
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ the StrategyOrchestrator at the correct import path.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
from hypothesis import given, settings, HealthCheck
|
||||||
|
from hypothesis import strategies as st
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ without requiring real StrategyOrchestrator connections.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
from hypothesis import given, settings, HealthCheck
|
||||||
|
from hypothesis import strategies as st
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ criteria, and the TeeFile logger — without requiring real OHLCV data or LLM.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
from hypothesis import given, settings, HealthCheck
|
||||||
|
from hypothesis import strategies as st
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ command building, and API key loading logic.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
from hypothesis import given, settings, HealthCheck
|
||||||
|
from hypothesis import strategies as st
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
"""Deep tests for verify_runtime — property-based, fuzzing, edge cases.
|
"""Deep tests for verify_runtime — property-based, fuzzing, edge cases.
|
||||||
|
|
||||||
Extends test_verify_runtime.py with property-based tests using hypothesis
|
Extends test_verify_runtime.py with property-based tests using hypothesis
|
||||||
@@ -15,8 +16,8 @@ import pytest
|
|||||||
PROJECT_ROOT = Path(__file__).parent.parent.parent
|
PROJECT_ROOT = Path(__file__).parent.parent.parent
|
||||||
sys.path.insert(0, str(PROJECT_ROOT))
|
sys.path.insert(0, str(PROJECT_ROOT))
|
||||||
|
|
||||||
from hypothesis import assume, given, settings
|
|
||||||
from hypothesis import strategies as st
|
from hypothesis import strategies as st
|
||||||
|
from hypothesis import given, settings
|
||||||
from hypothesis.extra.numpy import arrays
|
from hypothesis.extra.numpy import arrays
|
||||||
|
|
||||||
from rdagent.components.backtesting.verify import verify_and_log, verify_backtest_result
|
from rdagent.components.backtesting.verify import verify_and_log, verify_backtest_result
|
||||||
|
|||||||
Reference in New Issue
Block a user