Skip to content

Commit 80c309e

Browse files
authored
Merge pull request #205 from nirtal85/reorder
re order
2 parents f06a00e + 6eaf610 commit 80c309e

File tree

13 files changed

+14
-35
lines changed

13 files changed

+14
-35
lines changed

pyproject.toml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
[build-system]
2-
build-backend = "hatchling.build"
3-
requires = ["hatchling"]
4-
51
[dependency-groups]
62
dev = [
73
"ruff==0.11.8",
84
"pre-commit==4.2.0"
95
]
106

117
[project]
12-
authors = [{name = "nirtal85", email = "nirt236@gmail.com"}]
138
dependencies = [
149
"allure-pytest==2.14.1",
1510
"axe-playwright-python==0.1.4",
@@ -21,28 +16,12 @@ dependencies = [
2116
"requests==2.32.3"
2217
]
2318
description = "Playwright Python example project with pytest and Allure report"
24-
keywords = [
25-
"playwright",
26-
"automation",
27-
"testing",
28-
"web"
29-
]
3019
name = "playwright-python"
31-
readme = "README.md"
3220
requires-python = "~=3.11"
3321
version = "0.1.0"
3422

35-
[tool.hatch.build.targets.sdist]
36-
include = ["playwright_python"]
37-
38-
[tool.hatch.build.targets.wheel]
39-
include = ["playwright_python"]
40-
41-
[tool.isort]
42-
profile = "black"
43-
skip = ["env", "venv"]
44-
4523
[tool.pytest.ini_options]
24+
pythonpath = ["src"]
4625
addopts = [
4726
"--clean-alluredir",
4827
"--alluredir=allure-results",
File renamed without changes.
File renamed without changes.
File renamed without changes.

pages/login_page.py renamed to src/pages/login_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import allure
55
from playwright.sync_api import Page
66

7-
from enums import User
7+
from src.enums import User
88

99

1010
@allure.severity(allure.severity_level.CRITICAL)
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/accesability_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
class TestAccessibility:
55
@allure.title("Test Accessibility with Default Counts")
6-
def test_accessibility_default_counts(self, axe_playwright, page):
6+
def test_accessibility_default_counts(self, axe_playwright, page) -> None:
77
axe_playwright.check_accessibility(page)
88

99
@allure.title("Test Accessibility with Custom Counts")
10-
def test_accessibility_custom_counts(self, axe_playwright, page):
10+
def test_accessibility_custom_counts(self, axe_playwright, page) -> None:
1111
axe_playwright.check_accessibility(
1212
page,
1313
maximum_allowed_violations_by_impact={

tests/checkout_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import pytest
22
from playwright.sync_api import Page, expect
33

4-
from enums.User import User
4+
from src.enums.User import User
55

66

77
class TestCheckout:
88
@pytest.mark.parametrize("browser_context_args", [User.STANDARD_USER], indirect=True)
9-
def test_checkout_counter(self, browser_context_args, page: Page):
9+
def test_checkout_counter(self, browser_context_args, page: Page) -> None:
1010
page.evaluate("localStorage.setItem('cart-contents', '[4,0]');")
1111
page.reload()
1212
expect(page.get_by_test_id("shopping-cart-badge")).to_have_text("2")

0 commit comments

Comments
 (0)