@@ -2909,13 +2909,11 @@ func createMockModelFile(t *testing.T, dir, filename string) {
29092909
29102910func TestAutoDiscoverModels_RealModels (t * testing.T ) {
29112911 // Test with real models directory
2912- modelsDir := "../../../../../ models"
2912+ modelsDir := "../../../../models"
29132913
29142914 paths , err := AutoDiscoverModels (modelsDir )
29152915 if err != nil {
2916- // Skip this test in environments without the real models directory
2917- t .Logf ("AutoDiscoverModels() failed in real-models test: %v" , err )
2918- t .Skip ("Skipping real-models discovery test because models directory is unavailable" )
2916+ t .Fatalf ("AutoDiscoverModels() failed: %v (models directory should exist at %s)" , err , modelsDir )
29192917 }
29202918
29212919 t .Logf ("Discovered paths:" )
@@ -2964,10 +2962,9 @@ func TestAutoDiscoverModels_RealModels(t *testing.T) {
29642962// TestAutoInitializeUnifiedClassifier tests the full initialization process
29652963func TestAutoInitializeUnifiedClassifier (t * testing.T ) {
29662964 // Test with real models directory
2967- classifier , err := AutoInitializeUnifiedClassifier ("../../../../../ models" )
2965+ classifier , err := AutoInitializeUnifiedClassifier ("../../../../models" )
29682966 if err != nil {
2969- t .Logf ("AutoInitializeUnifiedClassifier() failed in real-models test: %v" , err )
2970- t .Skip ("Skipping unified classifier init test because real models are unavailable" )
2967+ t .Fatalf ("AutoInitializeUnifiedClassifier() failed: %v (models directory should exist at ../../../../models)" , err )
29712968 }
29722969
29732970 if classifier == nil {
@@ -3305,7 +3302,7 @@ var (
33053302// getTestClassifier returns a shared classifier instance for all integration tests
33063303func getTestClassifier (t * testing.T ) * UnifiedClassifier {
33073304 globalTestClassifierOnce .Do (func () {
3308- classifier , err := AutoInitializeUnifiedClassifier ("../../../../../ models" )
3305+ classifier , err := AutoInitializeUnifiedClassifier ("../../../../models" )
33093306 if err != nil {
33103307 t .Logf ("Failed to initialize classifier: %v" , err )
33113308 return
@@ -3323,8 +3320,11 @@ func TestUnifiedClassifier_Integration(t *testing.T) {
33233320 // Get shared classifier instance
33243321 classifier := getTestClassifier (t )
33253322 if classifier == nil {
3326- t .Skip ("Skipping integration tests - classifier not available" )
3327- return
3323+ t .Fatal ("Classifier initialization failed" )
3324+ }
3325+
3326+ if ! classifier .useLoRA {
3327+ t .Fatal ("LoRA models not detected" )
33283328 }
33293329
33303330 t .Run ("RealBatchClassification" , func (t * testing.T ) {
0 commit comments