Skip to content
Snippets Groups Projects
test_settings.py 487 B
Newer Older
  • Learn to ignore specific revisions
  • """
    Custom testing settings for testing views
    """
    from workbench.settings import *
    
    
    # Usage id pattern (from edx-platform)
    USAGE_ID_PATTERN = r'(?P<usage_id>(?:i4x://?[^/]+/[^/]+/[^/]+/[^@]+(?:@[^/]+)?)|(?:[^/]+))'
    
    # Keep settings, use different ROOT_URLCONF
    ROOT_URLCONF = 'test_urls'
    
    LMS_ROOT_URL = "https://example.com"
    
    # Dummy FEATURES dict
    
    
    # Set rest framework settings to test pagination
    REST_FRAMEWORK = {
        'PAGE_SIZE': 10
    }