this got @gmail.com banned on kilo.ai
This commit is contained in:
parent
84ad98b4d3
commit
1861b212c2
19 changed files with 669 additions and 571 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue