Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e7ea22

Browse files
[py] remove duplicate fixture
1 parent f1a5c8f commit 5e7ea22

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

‎examples/python/tests/conftest.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@ def chromedriver_path():
2323
return webdriver.common.driver_finder.DriverFinder().get_path(service=service, options=options)
2424

2525

26-
@pytest.fixture(scope='function')
27-
def log_path():
28-
suffix = datetime.now().strftime("%y%m%d_%H%M%S")
29-
log_path = 'log_file_' + suffix + '.log'
30-
31-
yield log_path
32-
33-
logger = logging.getLogger('selenium')
34-
for handler in logger.handlers:
35-
logger.removeHandler(handler)
36-
handler.close()
37-
38-
os.remove(log_path)
39-
40-
4126
@pytest.fixture(scope='function')
4227
def temp_dir():
4328
with tempfile.TemporaryDirectory() as temp_dir:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /