Skip to content

Commit

Permalink
Avoid printing test YAML for all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Dec 18, 2024
1 parent b227ac2 commit e263368
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upk2esphome/parts/remote.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from upk2esphome.config import ConfigData
from upk2esphome.generator import invert, pull
from upk2esphome.generator import pull
from upk2esphome.opts import Opts
from upk2esphome.result import YamlResult

Expand Down
5 changes: 4 additions & 1 deletion upk2esphome/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
print("\n".join(f"I: {s}" for s in yr.logs))
print("\n".join(f"W: {s}" for s in yr.warnings))
print("\n".join(f"E: {s}" for s in yr.errors))
print(yr.text)
if len(argv) == 2:
print(yr.text)
print("-" * 80)

expected = join(
Expand All @@ -70,3 +71,5 @@
print("got errors:")
print("\n".join(errors))
sys.exit(1)
else:
print("no errors reported")

0 comments on commit e263368

Please sign in to comment.