Skip to content

Commit

Permalink
[#0] fix capsys.readouterr() to have .out
Browse files Browse the repository at this point in the history
  • Loading branch information
swthewhite authored Feb 8, 2025
1 parent 74e90f9 commit b9ee0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/racingcar/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_전진_및_정지(capsys):
main() # 프로그램 실행

# 출력값을 캡처한 후 검증
캡처된_출력 = capsys.readouterr()
캡처된_출력 = capsys.readouterr().out
assert all(예상_출력 in 캡처된_출력 for 예상_출력 in ["pobi : -", "woni : ", "최종 우승자 : pobi"])


Expand Down

0 comments on commit b9ee0b6

Please sign in to comment.