IDKHowToCodeFr commited on
Commit
2a9d346
Β·
verified Β·
1 Parent(s): 9596562

Upload folder using huggingface_hub

Browse files
{backend/tests β†’ tests}/test_api.py RENAMED
@@ -3,7 +3,7 @@ from fastapi.testclient import TestClient
3
  import sys
4
  import os
5
 
6
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
7
  from main import app
8
 
9
  client = TestClient(app)
 
3
  import sys
4
  import os
5
 
6
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../backend')))
7
  from main import app
8
 
9
  client = TestClient(app)
{backend/tests β†’ tests}/test_database.py RENAMED
@@ -5,7 +5,7 @@ import sys
5
  import aiosqlite
6
  from collections import namedtuple
7
 
8
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
9
  import database
10
 
11
  # Mock settings to avoid real huggingface calls
 
5
  import aiosqlite
6
  from collections import namedtuple
7
 
8
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../backend')))
9
  import database
10
 
11
  # Mock settings to avoid real huggingface calls
{backend/tests β†’ tests}/test_ensemble.py RENAMED
@@ -4,7 +4,7 @@ import os
4
  import sys
5
  from unittest.mock import patch, MagicMock
6
 
7
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
8
  from ensemble import EnsembleModel
9
 
10
  @patch('joblib.load')
 
4
  import sys
5
  from unittest.mock import patch, MagicMock
6
 
7
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../backend')))
8
  from ensemble import EnsembleModel
9
 
10
  @patch('joblib.load')
{backend/tests β†’ tests}/test_preprocessing.py RENAMED
@@ -4,7 +4,7 @@ import numpy as np
4
  import os
5
  import sys
6
 
7
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
8
  from preprocessing import preprocess_data, resolve_model_dir
9
 
10
  def test_resolve_model_dir():
 
4
  import os
5
  import sys
6
 
7
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../backend')))
8
  from preprocessing import preprocess_data, resolve_model_dir
9
 
10
  def test_resolve_model_dir():
{backend/tests β†’ tests}/test_simulator.py RENAMED
@@ -3,7 +3,7 @@ import asyncio
3
  import sys
4
  import os
5
 
6
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
7
  from simulator import PatientDataSimulator
8
 
9
  @pytest.mark.asyncio
 
3
  import sys
4
  import os
5
 
6
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../backend')))
7
  from simulator import PatientDataSimulator
8
 
9
  @pytest.mark.asyncio