Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Jan 26, 2024
1 parent d0ff6f0 commit 457510c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ def test_list_score_paths(nested_dir: Path) -> None:

assert len(score_paths) == 4

assert "level1/level2/level3/score3.mscz" in str(score_paths[0])
assert "level1/level2/score2.mscz" in str(score_paths[1])
assert "level1/score1.mscz" in str(score_paths[2])
score_paths.sort()
assert "score0.mscz" in str(score_paths[3])
assert "level1/score1.mscz" in str(score_paths[2])
assert "level1/level2/score2.mscz" in str(score_paths[1])
assert "level1/level2/level3/score3.mscz" in str(score_paths[0])


@pytest.mark.skip("Will be fixed later")
Expand Down
5 changes: 2 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

import os
import tempfile
from pathlib import Path
from typing import Generator, Optional
from typing import Optional
from unittest import mock

import pytest
Expand Down Expand Up @@ -50,7 +49,7 @@ def test_without_extension(self) -> None:

def test_extension_both(self) -> None:
result: list[str] = self._list_scores("/test", extension="both")
assert result == ['/a/b/dolor.mscx', '/a/b/impsum.mscz', '/a/lorem.mscx']
assert result == ["/a/b/dolor.mscx", "/a/b/impsum.mscz", "/a/lorem.mscx"]

def test_extension_mscx(self) -> None:
result: list[str] = self._list_scores("/test", extension="mscx")
Expand Down

0 comments on commit 457510c

Please sign in to comment.