Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /limber-project_limberframework /tests /config /test_config.py
| from configparser import ConfigParser | |
| from unittest.mock import Mock | |
| from limberframework.config.config import Config | |
| def test_init(): | |
| config = Config() | |
| assert isinstance(config, Config) | |
| assert isinstance(config, ConfigParser) | |
| def test_get_section(): | |
| config = Config() | |
| config.__getitem__ = Mock( | |
| return_value={"db": "0", "host": "http://localhost", "port": "1234"} | |
| ) | |
| section = config.get_section("test") | |
| assert section == {"db": 0, "host": "http://localhost", "port": 1234} | |
Xet Storage Details
- Size:
- 521 Bytes
- Xet hash:
- 2dfc914c4112728929d4701be13869ebe226f35f6db81b4bfebe01aca405b138
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.