Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
pszkamruk-splunk committed Nov 8, 2023
1 parent 64ebc9a commit 30b4c1e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ui_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from webdriver.webriver_factory import WebDriverFactory
from logger.logger import Logger
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()

Expand Down
5 changes: 3 additions & 2 deletions ui_tests/pages/groups_page.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import time

from webdriver.webriver_factory import WebDriverFactory
from logger.logger import Logger
from selenium.webdriver.common.by import By

import pages.helper as helper
from logger.logger import Logger
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory.get_driver()
Expand Down
5 changes: 3 additions & 2 deletions ui_tests/pages/header_page.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import re
import time

from webdriver.webriver_factory import WebDriverFactory
from logger.logger import Logger
from selenium.webdriver.common.by import By

from logger.logger import Logger
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory.get_driver()

Expand Down
2 changes: 1 addition & 1 deletion ui_tests/pages/helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from logger.logger import Logger
from selenium.webdriver.common.keys import Keys

from logger.logger import Logger

logger = Logger().get_logger()

Expand Down
6 changes: 3 additions & 3 deletions ui_tests/pages/inventory_page.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import time

import selenium.common.exceptions

from webdriver.webriver_factory import WebDriverFactory
from logger.logger import Logger
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

import pages.helper as helper
from logger.logger import Logger
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory.get_driver()
Expand Down
5 changes: 3 additions & 2 deletions ui_tests/pages/profiles_page.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import time

from webdriver.webriver_factory import WebDriverFactory
from logger.logger import Logger
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

import pages.helper as helper
from logger.logger import Logger
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory.get_driver()
Expand Down
1 change: 1 addition & 0 deletions ui_tests/pages/yaml_values_reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import yaml

from config import config


Expand Down
7 changes: 4 additions & 3 deletions ui_tests/splunk_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

import json
import logging
import time
import requests
import os
import sys
from requests.packages.urllib3.util.retry import Retry
import time

import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry

TIMEROUT = 500

Expand Down
1 change: 0 additions & 1 deletion ui_tests/tests/test_save_update_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from pages.profiles_page import ProfilesPage
from pages.yaml_values_reader import YamlValuesReader
from webdriver.webriver_factory import WebDriverFactory
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory().get_driver()
Expand Down
2 changes: 1 addition & 1 deletion ui_tests/tests/test_splunk_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from pages.header_page import HeaderPage
from pages.inventory_page import InventoryPage
from pages.profiles_page import ProfilesPage
from webdriver.webriver_factory import WebDriverFactory
from splunk_search import check_events_from_splunk
from webdriver.webriver_factory import WebDriverFactory

logger = Logger().get_logger()
driver = WebDriverFactory().get_driver()
Expand Down
3 changes: 2 additions & 1 deletion ui_tests/webdriver/webriver_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import config.config as config
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager

import config.config as config
from logger.logger import Logger

logger = Logger().get_logger()
Expand Down

0 comments on commit 30b4c1e

Please sign in to comment.