Skip to content

Autonomous AI sales agent powered by Claude Code or Codex. Finds prospects, writes cold emails, sends campaigns, handles replies, books meetings. No API keys needed — runs on your Claude or Codex subscriptions.

test: decode browser harness output as UTF-8 on Windows

Ethan+d77b68015489
diff --git a/tests/test_dashboard_signals.py b/tests/test_dashboard_signals.py
index bea647c..a9974ea 100644
--- a/tests/test_dashboard_signals.py
+++ b/tests/test_dashboard_signals.py
@@ -438,7 +438,7 @@ vm.runInThisContext("const _cohort = {require: new Set(['A']), exclude: new Set(
})().catch(e => {console.error(e); process.exit(1);});
'''
result = subprocess.run([node, '-e', script, str(web / 'auth.js'), str(web / 'app.js')],
- text=True, capture_output=True, check=True)
+ text=True, encoding="utf-8", capture_output=True, check=True)
data = json.loads(result.stdout)
assert all(c['auth'] == 'Bearer ' + 'T' * 43 and c['redirect'] == 'error' for c in data['calls'])
assert data['calls'][0]['url'] == 'http://127.0.0.1:5555/api/cohort.csv?require=A&exclude=B'
@@ -495,7 +495,7 @@ const page = (name, offset) => ({size: 100, offset, companies: [{name}]});
offsets: pending.map(x => x.body.offset)}));
})().catch(e => {console.error(e); process.exit(1);});
'''
- response = subprocess.run([node, '-e', script, str(app)], text=True,
+ response = subprocess.run([node, '-e', script, str(app)], text=True, encoding="utf-8",
capture_output=True, check=True)
data = json.loads(response.stdout)
assert data['offsets'] == [0, 50, 50]