-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c0054c
commit 4a48a30
Showing
7 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pytest | ||
from anyio import Path | ||
|
||
from goosebit.updates.swdesc.rauc import parse_file | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_parse_software_header(): | ||
resolved = await Path(__file__).resolve() | ||
swdesc_attrs = await parse_file(resolved.parent / "software-header.raucb") | ||
assert str(swdesc_attrs["version"]) == "8.8.1-11-g8c926e5+188370" | ||
assert swdesc_attrs["compatibility"] == [ | ||
{"hw_model": "default", "hw_revision": "rauc-test-goosebit"}, | ||
] |