mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 13:52:38 +02:00
feat: merge geekan:main
This commit is contained in:
parent
769dc8220d
commit
ec8c703c5a
14 changed files with 251 additions and 18 deletions
|
|
@ -73,6 +73,17 @@ def proxy():
|
|||
return "http://{}:{}".format(*server.sockets[0].getsockname())
|
||||
|
||||
|
||||
# see https://github.com/Delgan/loguru/issues/59#issuecomment-466591978
|
||||
@pytest.fixture
|
||||
def loguru_caplog(caplog):
|
||||
class PropogateHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
logging.getLogger(record.name).handle(record)
|
||||
|
||||
logger.add(PropogateHandler(), format="{message}")
|
||||
yield caplog
|
||||
|
||||
|
||||
# init & dispose git repo
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def setup_and_teardown_git_repo(request):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue