File size: 1,040 Bytes
5f613ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Simple pytest configuration for SkillSprout tests
"""
import pytest
import os
import sys

# Add parent directory to path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

@pytest.fixture
def enhanced_user_progress():
    """Enhanced user progress for testing"""
    from space_app import EnhancedUserProgress
    return EnhancedUserProgress(
        user_id="test_user",
        skill="Python Programming",
        lessons_completed=3,
        quiz_scores=[80.0, 90.0, 70.0],
        mastery_level=75.0
    )

@pytest.fixture
def gamification_manager():
    """Gamification manager instance for testing"""
    from space_app import GamificationManager
    return GamificationManager()

# Pytest configuration
def pytest_configure(config):
    """Configure pytest settings"""
    config.addinivalue_line("markers", "unit: marks tests as unit tests")
    config.addinivalue_line("markers", "integration: marks tests as integration tests")
    config.addinivalue_line("markers", "slow: marks tests as slow")