Skip to content

Commit 24b7c82

Browse files
committed
V4
1 parent 9af68f2 commit 24b7c82

36 files changed

+33
-18
lines changed

run_test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
22
echo Running Python environment test...
3-
python test_env.py > test_output.txt 2>&1
3+
python -c "from tests.verify_environment import main; main()" > test_output.txt 2>&1
44
type test_output.txt
55
pause

run_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def run_test():
55
try:
66
# Run the test script and capture output
77
result = subprocess.run(
8-
[sys.executable, "test_meridianalgo_simple.py", "-v"],
8+
[sys.executable, "-m", "tests.test_meridianalgo_simple", "-v"],
99
capture_output=True,
1010
text=True
1111
)
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ def check_import(package_name):
3838
subprocess.check_call([sys.executable, "-m", "pip", "install", "-e", "."])
3939

4040
print("\n=== Dependencies setup complete ===\n")
41-
print("You can now run the test script with: python test_package.py")
41+
print("You can now run the test script with: python -m tests.test_package")

setup_and_test.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@echo off
2+
echo Setting up MeridianAlgo development environment...
3+
24
REM Create and activate virtual environment
35
echo Creating virtual environment...
46
python -m venv venv
@@ -15,6 +17,6 @@ pip install -e .
1517

1618
REM Run tests
1719
echo Running tests...
18-
python test_all.py
20+
python -m tests.test_all
1921

2022
pause

setup_environment.bat

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ echo Creating virtual environment...
55
python -m venv venv
66

77
if exist "venv\Scripts\activate" (
8-
echo Activating virtual environment...
9-
call venv\Scripts\activate
10-
11-
echo Upgrading pip...
12-
python -m pip install --upgrade pip
13-
14-
echo Installing dependencies...
15-
pip install numpy pandas scipy scikit-learn yfinance torch
16-
17-
echo Installing meridianalgo in development mode...
18-
pip install -e .
19-
20-
echo.
21-
echo Setup complete! Run 'venv\Scripts\activate' to activate the environment.
8+
@echo off
9+
echo Setting up Python environment...
10+
11+
REM Create virtual environment
12+
python -m venv venv
13+
14+
REM Activate the virtual environment
15+
call venv\Scripts\activate
16+
17+
REM Install dependencies
18+
echo Installing dependencies...
19+
pip install -r requirements.txt
20+
21+
REM Install the package in development mode
22+
echo Installing MeridianAlgo in development mode...
23+
pip install -e .
24+
25+
echo Environment setup complete!
26+
pause
27+
echo Run 'venv\Scripts\activate' to activate the environment.
2228
) else (
2329
echo Failed to create virtual environment.
2430
exit /b 1

tests/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""
2+
Test suite for MeridianAlgo package.
3+
4+
This package contains all the test files for the MeridianAlgo library.
5+
"""
6+
7+
__all__ = [] # Add test modules here if needed

0 commit comments

Comments
 (0)