39ba81efada9cc012579067b9a085525c0495559
Plain asyncio.gather on one event loop could let the first upload commit before the second's pre-check, making the second a legitimate replace (2 successes, 1 live row) -- correct behavior that fails the '1 conflict' assertion. Same Event-synchronization pattern as the auto's HTTP race tests: hold the first past its pre-check until the second also pre-checks, so both read None before either writes and the partial-unique index decides deterministically. Code under test untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
Serviço fiscal compartilhado SowAI: emissão NF-e (e futuramente NFS-e/NFC-e) multi-produto via REST. Embute a lib sowai-fiscal; dono de documentos/certificados/séries. F2+ do plano Estágio 2.
280 KiB
Languages
Python
96.9%
Makefile
2.2%
Dockerfile
0.6%
Mako
0.3%