fix: Ensure release objects are not None in update flow integration tests
This commit is contained in:
parent
e1bf5a57c2
commit
ca9526c1c1
2 changed files with 13 additions and 8 deletions
|
|
@ -97,6 +97,8 @@ class TestUpdateFlowIntegration:
|
|||
assert mock_fetch.call_count == 1 # Still 1, cache used
|
||||
|
||||
# Verify both got same result
|
||||
assert release1 is not None
|
||||
assert release2 is not None
|
||||
assert release1.version == release2.version
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
@ -164,6 +166,7 @@ class TestUpdateFlowIntegration:
|
|||
release = await manager.check_for_updates()
|
||||
|
||||
# Version should be extracted correctly (without 'v')
|
||||
assert release is not None
|
||||
assert release.version == "1.2.3"
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
@ -180,6 +183,7 @@ class TestUpdateFlowIntegration:
|
|||
release = await manager.check_for_updates()
|
||||
|
||||
# Should have both exe and checksum
|
||||
assert release is not None
|
||||
assert len(release.assets) == 2
|
||||
asset_names = [a["name"] for a in release.assets]
|
||||
assert "WebDropBridge.exe" in asset_names
|
||||
|
|
@ -199,5 +203,6 @@ class TestUpdateFlowIntegration:
|
|||
release = await manager.check_for_updates()
|
||||
|
||||
# Changelog should be available
|
||||
assert release is not None
|
||||
assert release.body == mock_forgejo_response["body"]
|
||||
assert "Bug Fixes" in release.body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue