1
0
Fork 0

this got @gmail.com banned on kilo.ai

This commit is contained in:
Arthur K. 2026-03-12 04:46:48 +03:00
parent 84ad98b4d3
commit 1861b212c2
Signed by: wzray
GPG key ID: B97F30FDC4636357
19 changed files with 669 additions and 571 deletions

View file

@ -93,10 +93,11 @@ async def test_mark_done(tmp_path, monkeypatch):
monkeypatch.setattr(em, "DATA_DIR", tmp_path)
monkeypatch.setattr(em, "DONE_FILE", done_file)
await mark_done("test@example.com")
account = em.EmailAccount(email="test@example.com", password="secret123")
await mark_done(account)
content = done_file.read_text()
assert "test@example.com" in content
assert "test@example.com:secret123" in content
@pytest.mark.asyncio
@ -105,10 +106,11 @@ async def test_mark_failed(tmp_path, monkeypatch):
monkeypatch.setattr(em, "DATA_DIR", tmp_path)
monkeypatch.setattr(em, "FAILED_FILE", failed_file)
await mark_failed("test@example.com")
account = em.EmailAccount(email="test@example.com", password="secret123")
await mark_failed(account)
content = failed_file.read_text()
assert "test@example.com" in content
assert "test@example.com:secret123" in content
@pytest.mark.asyncio