Skip to content

Commit

Permalink
test_ubuntupkg: update and make it more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg authored and yan12125 committed May 19, 2024
1 parent 8397cbb commit 6af59aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_ubuntupkg.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# MIT licensed
# Copyright (c) 2020 lilydjwg <[email protected]>, et al.
# Copyright (c) 2020,2024 lilydjwg <[email protected]>, et al.
# Copyright (c) 2017 Felix Yan <[email protected]>, et al.

import pytest
pytestmark = [pytest.mark.asyncio(scope="session"), pytest.mark.needs_net]

@pytest.mark.flaky
async def test_ubuntupkg(get_version):
assert await get_version("sigrok-firmware-fx2lafw", {
v = await get_version("sigrok-firmware-fx2lafw", {
"source": "ubuntupkg",
}) == "0.1.7-1"
})
assert v.startswith("0.1.7-")

@pytest.mark.flaky
async def test_ubuntupkg_strip_release(get_version):
Expand Down

0 comments on commit 6af59aa

Please sign in to comment.