Skip to content

Instantly share code, notes, and snippets.

@atu4403
Created November 30, 2020 06:17
Show Gist options
  • Save atu4403/3fdf8555d9250e763907ab8a7943b3fd to your computer and use it in GitHub Desktop.
Save atu4403/3fdf8555d9250e763907ab8a7943b3fd to your computer and use it in GitHub Desktop.
paizaの問題回答用テンプレート(python, pytest, pytest_mock使用)
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