Skip to content

Commit 3ef5ae3

Browse files
committed
add AGS767 fixtures and tests; consolidate vec README into shared fixture folder
1 parent eb3aed0 commit 3ef5ae3

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

File renamed without changes.

tests/fixtures/ags767/078711.vec

197 KB
Binary file not shown.

tests/fixtures/ags767/aircraft.air

5.45 KB
Binary file not shown.

tests/test_fixtures_arinc767.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from pathlib import Path
2+
3+
FIXTURE_DIR = Path(__file__).parent / "fixtures" / "ags767"
4+
5+
6+
def test_fixture_files_exist():
7+
assert (FIXTURE_DIR / "078711.vec").exists()
8+
assert (FIXTURE_DIR / "aircraft.air").exists()
9+
assert (FIXTURE_DIR / "README.md").exists()
10+
11+
12+
def test_078711_vec_is_zip():
13+
data = (FIXTURE_DIR / "078711.vec").read_bytes()
14+
assert data.startswith(b"PK\x03\x04") # ZIP magic
15+
16+
17+
def test_aircraft_air_is_utf16():
18+
data = (FIXTURE_DIR / "aircraft.air").read_bytes()
19+
assert data.startswith(b"\xff\xfe") # UTF‑16LE BOM

0 commit comments

Comments
 (0)