Skip to content

Commit

Permalink
ci: reverted some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Feb 8, 2025
1 parent 1a68e17 commit 527fa82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/inline_snapshot/pytest_plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ast
import os
import sys
from pathlib import Path

Expand Down Expand Up @@ -351,7 +352,11 @@ def report(flag, message, message_n):
Panel(
Syntax(diff, "diff", theme="ansi_light"),
title=str(name),
box=(box.ASCII),
box=(
box.ASCII
if os.environ.get("TERM", "") == "unknown"
else box.ROUNDED
),
)
)

Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ def format(self):
)

def pyproject(self, source):
print("write pyproject.toml:")
print(source)
self.write_file("pyproject.toml", source)

def write_file(self, filename, content):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_formating.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def test_no_black(mocker):
Example(
{
"test_a.py": """\
from inline_snapshot import snapshot
def test_a():
Expand All @@ -195,6 +196,7 @@ def test_a():
changed_files=snapshot(
{
"test_a.py": """\
from inline_snapshot import snapshot
def test_a():
Expand Down

0 comments on commit 527fa82

Please sign in to comment.