refactor: Use loguru instead of standard logging library

- Replace standard logging with loguru
- Cleaner imports and configuration
- Same error handling functionality maintained
pull/1165/head
Hugh 1 week ago
parent 71e5e879e8
commit c3369f365a

@ -1,12 +1,8 @@
import pytest import pytest
import logging
from loguru import logger
from swarms.utils.any_to_str import any_to_str from swarms.utils.any_to_str import any_to_str
# Configure logging for tests
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
class TestAnyToStr: class TestAnyToStr:
"""Test cases for the any_to_str function.""" """Test cases for the any_to_str function."""

@ -1,13 +1,9 @@
import pytest import pytest
import json import json
import logging
from loguru import logger
from swarms.utils.str_to_dict import str_to_dict from swarms.utils.str_to_dict import str_to_dict
# Configure logging for tests
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
class TestStrToDict: class TestStrToDict:
"""Test cases for the str_to_dict function.""" """Test cases for the str_to_dict function."""

Loading…
Cancel
Save