Merge pull request #6 from 20-2-SKKU-OSS/kio

testcase 추가
This commit is contained in:
yunminjin2 2020-12-05 19:31:37 +09:00 committed by GitHub
commit 1946781129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

10
tests/test_korean.py Normal file
View file

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
import pytest
import pysnooper
@pysnooper.snoop()
def func(x):
return x + 1
def test_korean(x):
assert func(x) != x+1, '성공!'
test_korean(0)

14
tests/test_nesting.py Normal file
View file

@ -0,0 +1,14 @@
import time
import pysnooper
snoop = pysnooper.snoop()
def test():
with snoop:
a = 10
with snoop:
time.sleep(1.0)
a = 20
time.sleep(1.0)
test()