Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced non-existent extension with txt #5

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Tests/test_file_ppm.py
Expand Up @@ -51,7 +51,7 @@ def test_pnm(tmp_path):


def test_not_ppm(tmp_path):
path = str(tmp_path / "temp.djvurle")
path = str(tmp_path / "temp.txt")
with open(path, "wb") as f:
f.write(b"PyInvalid")

Expand All @@ -70,7 +70,7 @@ def test_header_with_comments(tmp_path):


def test_nondecimal_header(tmp_path):
path = str(tmp_path / "temp.djvurle")
path = str(tmp_path / "temp.txt")
with open(path, "wb") as f:
f.write(b"P6\n128\x00")

Expand All @@ -80,7 +80,7 @@ def test_nondecimal_header(tmp_path):


def test_token_too_long(tmp_path):
path = str(tmp_path / "temp.djvurle")
path = str(tmp_path / "temp.txt")
with open(path, "wb") as f:
f.write(b"P6\n 0123456789")

Expand All @@ -90,7 +90,7 @@ def test_token_too_long(tmp_path):


def test_too_many_colors(tmp_path):
path = str(tmp_path / "temp.djvurle")
path = str(tmp_path / "temp.txt")
with open(path, "wb") as f:
f.write(b"P6\n1 1\n1000\n")

Expand Down