Skip to content

Commit

Permalink
add tests for junk bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 12, 2024
1 parent 867c280 commit 6da59d7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
Binary file added asdf/_tests/data/junk_after_blocks.asdf
Binary file not shown.
Binary file added asdf/_tests/data/junk_before_blocks.asdf
Binary file not shown.
Binary file added asdf/_tests/data/no_junk.asdf
Binary file not shown.
17 changes: 17 additions & 0 deletions asdf/_tests/test_junk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pathlib import Path

import asdf

TEST_DATA_DIRECTORY = Path(__file__).parent / "data"


def test_no_junk():
asdf.open(TEST_DATA_DIRECTORY / "no_junk.asdf")


def test_junk_before_blocks():
asdf.open(TEST_DATA_DIRECTORY / "junk_before_blocks.asdf")


def test_junk_after_blocks():
asdf.open(TEST_DATA_DIRECTORY / "junk_after_blocks.asdf")

0 comments on commit 6da59d7

Please sign in to comment.