Skip to content

Commit

Permalink
Test filething
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Nov 10, 2024
1 parent afaed56 commit bbbb66a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_real_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def test_constructor_path(self) -> None:
)
assert "tests/files/real-world/Bach_Weihnachts.mp3" in mediafile.filename

# def test_constructor_filelike_object(self) -> None:
# file = open(
# Path(helper.TEST_RESOURCES_PATH) / "real-world" / "Bach_Weihnachts.mp3", "w"
# )
# mediafile = MediaFileExtended(file)

# assert "tests/files/real-world/Bach_Weihnachts.mp3" in mediafile.filename
def test_constructor_filelike_object(self) -> None:
file = open(
Path(helper.TEST_RESOURCES_PATH) / "real-world" / "Bach_Weihnachts.mp3",
"rb",
)
mediafile = MediaFileExtended(file)
assert "tests/files/real-world/Bach_Weihnachts.mp3" in mediafile.filename

def test_filename(self) -> None:
assert "tests/files/real-world/Bach_Weihnachts.mp3" in self.mediafile.filename
Expand Down

0 comments on commit bbbb66a

Please sign in to comment.