fix: stamp published_at on release publish (was NULL)

This commit is contained in:
gti
2026-09-23 15:28:59 -03:00
parent c509d1cfe2
commit 21c926150f
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -122,6 +122,14 @@ def test_publish_is_idempotent_and_rejects_hash_conflict(hub, tmp_path):
publish(session, write_temp_zip(make_release_zip("9.9.9") + b"\x00", "9.9.9"), version="9.9.9")
def test_publish_records_published_at(hub, tmp_path):
_client, factory = hub
with factory() as session:
release, created = publish(session, write_temp_zip(make_release_zip("9.9.9"), "9.9.9"), version="9.9.9")
assert created and release.status == "PUBLISHED"
assert release.published_at is not None # publishing stamps the moment, not left NULL
def test_published_release_binary_never_stored_in_postgres(hub):
_client, factory = hub
release_id = publish_release(factory)