MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / test

Function test

tests/email_parser_test.py:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11@pytest.mark.skip(reason="This test is disabled as it has eternal dependencies and tests nothing automatically, please move it to a script or a manual test")
12@pytest.mark.asyncio
13async def test():
14 load_dotenv()
15 messages = await read_messages(
16 account_type=get_dotenv_value("TEST_SERVER_TYPE", "imap"),
17 server=get_dotenv_value("TEST_EMAIL_SERVER"),
18 port=int(get_dotenv_value("TEST_EMAIL_PORT", 993)),
19 username=get_dotenv_value("TEST_EMAIL_USERNAME"),
20 password=get_dotenv_value("TEST_EMAIL_PASSWORD"),
21 )
22 print(messages)
23
24
25if __name__ == "__main__":

Callers 1

Calls 2

load_dotenvFunction · 0.90
get_dotenv_valueFunction · 0.90

Tested by

no test coverage detected