fix: stamp published_at on release publish (was NULL)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user