Tests
TestMaximCoreSimple
Test Maxim Core Simple functionality for Tests integration.
View module source on GitHub
A cache that evaluates to False but is not None - used to test the ‘cache is not None’ fix.
Test the cache handling changes, specifically the ‘if cache is not None:’ fix.
Set up test fixtures.
Clean up after tests.
Test enable_prompt_management with cache=None.
Test enable_prompt_management with a cache that evaluates to False but is not None.
This tests the fix from ‘if cache:’ to ‘if cache is not None:’.
Previously, a falsy cache would not be used even if it was a valid cache object.
Test enable_prompt_management with a normal valid cache.
Test that enable_prompt_management starts the sync thread.
Test enable_exceptions method returns self for chaining.
Test Maxim initialization and configuration.
Set up test fixtures.
Clean up after tests.
Test that Maxim requires an API key.
Test that Maxim uses environment variable for API key.
Test that Maxim follows singleton pattern.
Test that Maxim creates default cache when none provided.
Test that cleanup method properly sets is_running to False.
Test that cleanup method can be called multiple times safely.
Test the get_config_dict function.
Test get_config_dict function with Config object.
Test get_config_dict function with dictionary.