aboutsummaryrefslogtreecommitdiffstats
path: root/test_1.py
diff options
context:
space:
mode:
authorkarbon <yangbo6@chinatelecom.cn>2021-03-15 10:43:25 +0800
committerkarbon <yangbo6@chinatelecom.cn>2021-03-15 10:43:40 +0800
commit06bf4cdcedf782af4f8ff2485f0ad3bc97b08c73 (patch)
treebf297cefbb4110a5daaef35f4c7c8086c05f43af /test_1.py
parentf15dc37e62eee9d5d02bf58af1053750a20fad23 (diff)
feat:NLP for IBN in UUI
NLP for IBN in UUI Issue-ID: USECASEUI-525 Signed-off-by: karbon <yangbo6@chinatelecom.cn> Change-Id: I9f26312748ebaedb3115035c4af8b0abf19d59bc
Diffstat (limited to 'test_1.py')
-rw-r--r--test_1.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/test_1.py b/test_1.py
new file mode 100644
index 0000000..3e50176
--- /dev/null
+++ b/test_1.py
@@ -0,0 +1,24 @@
+# -*- coding:utf-8 -*-
+import pytest
+
+
+@pytest.fixture(scope='function')
+def setup_function(request):
+ def teardown_function():
+ print("teardown_function called.")
+ request.addfinalizer(teardown_function) # 此内嵌函数做teardown工作
+ print('setup_function called.')
+
+
+@pytest.fixture(scope='module')
+def setup_module(request):
+ def teardown_module():
+ print("teardown_module called.")
+ request.addfinalizer(teardown_module)
+ print('setup_module called.')
+
+
+# @pytest.mark.website
+def test_1(setup_function):
+ print('Test_1 called.')
+ assert 1 == 1