Created
November 30, 2020 06:17
-
-
Save atu4403/3fdf8555d9250e763907ab8a7943b3fd to your computer and use it in GitHub Desktop.
paizaの問題回答用テンプレート(python, pytest, pytest_mock使用)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = """7 | |
box | |
photo | |
axis | |
dish | |
church | |
leaf | |
knife""" | |
def test_lesson(mocker): | |
mocker.patch('builtins.input', side_effect=data.splitlines()) | |
# 本文 | |
import re | |
num = int(input()) | |
for i in range(num): | |
s = input() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment