def test_describe_appimaged(appimaged_path): u = Updater(appimaged_path) description = u.describe_appimage() assert "AppImage type: 2" in description assert "Raw update information: gh-releases-zsync|AppImage|appimaged|continuous|appimaged*x86_64*.AppImage.zsync" in description assert "Update information type: ZSync via GitHub Releases" in description
def test_describe_echo(echo_path): u = Updater(echo_path) description = u.describe_appimage() assert "AppImage type: 2" in description assert "Raw update information: <empty>" in description assert "Update information type: Invalid" in description