Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Feb 11, 2024
1 parent bc8ba94 commit 34bf9f1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ def test_compress() -> None:


@pytest.mark.slow
def test_remove_origin() -> None:
score = Cli("--compress", "--remove-origin").append_score("simple.mscx", 3).score()
dest = str(score.path).replace(".mscx", ".mscz")
assert not score.exists()
assert Path(dest).exists()
class TestOptionRemoveOrigin:
def test_uncompressed(self) -> None:
score = (
Cli("--compress", "--remove-origin").append_score("simple.mscx", 3).score()
)
dest = str(score.path).replace(".mscx", ".mscz")
assert not score.exists()
assert Path(dest).exists()

def test_already_compressed(self) -> None:
score = (
Cli("--compress", "--remove-origin").append_score("simple.mscz", 3).score()
)
assert score.exists()

0 comments on commit 34bf9f1

Please sign in to comment.