Skip to content

Commit

Permalink
Added pytest.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
Temidayo32 committed Feb 20, 2025
1 parent 16cd290 commit b5ecbcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export GECKODRIVER_LOG = $(shell pwd)/results/geckodriver.log

BLACK_CHECK = black -l 90 --check --diff .
BLACK_FIX = black -l 90 .
MINIMUM_COVERAGE = 95
FOXPUPPET_TESTS = pytest -vvv --driver Firefox --cov --cov-fail-under=$(MINIMUM_COVERAGE) --html results/report.html

check: install_poetry lint test

Expand All @@ -18,7 +16,7 @@ install_poetry:
curl -sSL https://install.python-poetry.org | python3 -

test: install_dependencies
poetry run $(FOXPUPPET_TESTS)
poetry run pytest

lint: install_dependencies
poetry run $(BLACK_CHECK)
Expand Down
2 changes: 1 addition & 1 deletion foxpuppet/windows/browser/panel_ui/panel_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def open_panel_menu(self) -> None:
with self.selenium.context(self.selenium.CONTEXT_CHROME):
self.selenium.find_element(*PanelUILocators.PANEL_UI_BUTTON).click()
self.wait.until(
EC.visibility_of_element_located(*PanelUILocators.PANEL_POPUP),
EC.presence_of_element_located(*PanelUILocators.PANEL_POPUP),
message="Panel UI menu did not open",
)

Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
addopts = -vvv --driver Firefox --cov --cov-fail-under=95 --html=results/report.html --self-contained-html
testpaths = tests

0 comments on commit b5ecbcb

Please sign in to comment.