File size: 1,335 Bytes
7c012de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Test Directory Structure

This directory contains all test files organized by type:

## Directory Structure

- `unit/` - Unit tests for individual components
  - `test_kb_browser.py` - Unit tests for Knowledge Browser component

- `integration/` - Integration tests for system components
  - `test-embeddings.js` - Tests Nebius embedding models
  - `test-enhanced-validation.js` - Tests URL validation system
  - `test-formatting.js` - Tests document analysis formatting
  - `test-nebius-direct.js` - Direct Nebius client tests
  - `test-nebius.js` - Nebius integration tests
  - `test-url-validation.js` - URL validation system tests
  - `quick_test.py` - Quick integration test for KB Browser

- `e2e/` - End-to-end tests (placeholder for future tests)

## Running Tests

### Python Tests
```bash
# Run unit tests
python -m pytest tests/unit/

# Run integration tests
python tests/integration/quick_test.py
```

### JavaScript Tests
```bash
# Run individual integration tests
node tests/integration/test-nebius.js
node tests/integration/test-embeddings.js
node tests/integration/test-url-validation.js
```

## Test Categories

- **Unit Tests**: Test individual functions and classes in isolation
- **Integration Tests**: Test how different components work together
- **End-to-End Tests**: Test complete user workflows (to be added)