Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ node_modules
.DS_Store
website_and_docs/.hugo_build.lock
website_and_docs/resources

*.png
*.log
*.py[cod]
__pycache__/
.tox/
venv/
**/target/*
.classpath
.project
.settings
.gitignore
.pydevproject
**/*.iml
**/.gradle
10 changes: 5 additions & 5 deletions examples/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
import subprocess
import tempfile
import time
from selenium.webdriver.common.utils import free_port
import uuid
from datetime import datetime
from urllib.request import urlopen
import requests
from requests.auth import HTTPBasicAuth

import pytest
import requests
from requests.auth import HTTPBasicAuth
from selenium import webdriver
from selenium.webdriver.common.utils import free_port


def pytest_configure(config):
Expand Down Expand Up @@ -96,8 +97,7 @@ def log():

@pytest.fixture(scope='function')
def log_path():
suffix = datetime.now().strftime("%y%m%d_%H%M%S")
log_path = 'log_file_' + suffix + '.log'
log_path = f'log_file_{uuid.uuid4()}.log'

yield log_path

Expand Down
2 changes: 1 addition & 1 deletion examples/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ deps =
-r requirements.txt
commands =
# "-vv" means extra verbose
pytest -vv -n auto {posargs:.}
pytest -vv -n auto {tty:--color=yes} {posargs:.}
Loading