WORKING
This commit is contained in:
@@ -88,6 +88,33 @@ class TestVersionDetection:
|
||||
assert limits["max_texture_size"] == 4096, f"Full version should have 4096px limit, got {limits['max_texture_size']}"
|
||||
assert limits["max_concurrent_operations"] == 4, f"Full version should have 4 concurrent operations, got {limits['max_concurrent_operations']}"
|
||||
|
||||
def test_get_version_limits_full_returns_pro_limits(self):
|
||||
"""Verify full version returns correct limits for texture size and concurrent operations."""
|
||||
from src.utils.constants import get_version_limits
|
||||
from unittest.mock import patch
|
||||
|
||||
with patch('src.utils.constants.VERSION_TYPE', 'full'):
|
||||
limits = get_version_limits()
|
||||
|
||||
assert limits["max_texture_size"] == 4096, \
|
||||
f"Expected full version max_texture_size=4096, got {limits['max_texture_size']}"
|
||||
assert limits["max_concurrent_operations"] == 4, \
|
||||
f"Expected full version max_concurrent_operations=4, got {limits['max_concurrent_operations']}"
|
||||
|
||||
def test_get_version_limits_free_returns_restricted_limits(self):
|
||||
"""Verify free version returns restricted limits for texture size and concurrent operations."""
|
||||
from src.utils.constants import get_version_limits
|
||||
from unittest.mock import patch
|
||||
|
||||
with patch('src.utils.constants.VERSION_TYPE', 'free'):
|
||||
limits = get_version_limits()
|
||||
|
||||
assert limits["max_texture_size"] == 1024, \
|
||||
f"Expected free version max_texture_size=1024, got {limits['max_texture_size']}"
|
||||
assert limits["max_concurrent_operations"] == 1, \
|
||||
f"Expected free version max_concurrent_operations=1, got {limits['max_concurrent_operations']}"
|
||||
|
||||
|
||||
|
||||
class TestRuntimeImportDetection:
|
||||
"""Test suite for runtime import detection flags."""
|
||||
|
||||
Reference in New Issue
Block a user