aboutsummaryrefslogtreecommitdiffstats
path: root/nlp/test_1.py
diff options
context:
space:
mode:
Diffstat (limited to 'nlp/test_1.py')
-rw-r--r--nlp/test_1.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/nlp/test_1.py b/nlp/test_1.py
deleted file mode 100644
index 3e50176..0000000
--- a/nlp/test_1.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- 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