From ca5807f40dc8fe64a05298340a4b97a8fb98ce93 Mon Sep 17 00:00:00 2001 From: CheonKiO Date: Sat, 5 Dec 2020 15:35:49 +0900 Subject: [PATCH 1/2] ADD test_korean.py --- tests/test_korean.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/test_korean.py diff --git a/tests/test_korean.py b/tests/test_korean.py new file mode 100644 index 0000000..2aa8c73 --- /dev/null +++ b/tests/test_korean.py @@ -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) From 162effc92c14f4e68c82af204c2e6dc8489da438 Mon Sep 17 00:00:00 2001 From: CheonKiO Date: Sat, 5 Dec 2020 16:37:25 +0900 Subject: [PATCH 2/2] ADD test_nesting.py --- tests/test_nesting.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_nesting.py diff --git a/tests/test_nesting.py b/tests/test_nesting.py new file mode 100644 index 0000000..cc7dbcc --- /dev/null +++ b/tests/test_nesting.py @@ -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()