Skip to content

Commit 0621a06

Browse files
pylint-fixed
1 parent 6d6aab4 commit 0621a06

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

content-gen/tests/e2e-test/pages/HomePage.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Home page object module for Fabric SQL automation tests."""
22
import logging
33
import json
4+
import os
45
import re
56
import math
67
from io import BytesIO
@@ -440,7 +441,7 @@ def delete_chat_history(self):
440441
initial_count = chat_history.count()
441442
logger.info(f"Initial chat history count: {initial_count}")
442443

443-
if initial_count == 0:
444+
if not initial_count:
444445
error_msg = "No chat history items available to delete"
445446
logger.error(f"❌ {error_msg}")
446447
raise AssertionError(error_msg)
@@ -574,7 +575,7 @@ def send_prompt_from_quick_link(self, quick_link=None):
574575

575576
try:
576577
# Step 1: Click on the quick link
577-
logger.info(f"Step 1: Clicking on quick link...")
578+
logger.info("Step 1: Clicking on quick link...")
578579
user_message = self.page.locator(quick_link)
579580
expect(user_message).to_be_visible(timeout=10000)
580581
user_message.click()
@@ -902,7 +903,6 @@ def download_image(self):
902903
# Step 3: Validate the downloaded file is not empty
903904
logger.info("Step 3: Validating downloaded file is not empty...")
904905
download_path = download.path()
905-
import os
906906
file_size = os.path.getsize(download_path)
907907
logger.info(f" Downloaded file size: {file_size} bytes")
908908
assert file_size > 0, "Downloaded file is empty (0 bytes)"
@@ -1226,7 +1226,7 @@ def validate_brief_confirmed_accuracy(self, expected_keywords=None, extra_fields
12261226
logger.error(f"❌ {error_msg}")
12271227
raise AssertionError(error_msg) from e
12281228

1229-
def validate_generated_copy_accuracy(self, product_name, generated_content_locator=None,
1229+
def validate_generated_copy_accuracy(self, product_name, generated_content_locator=None, # noqa: ARG002
12301230
min_length=30, expected_copy_keywords=None):
12311231
"""
12321232
Validate that the generated marketing copy is accurate and relevant.
@@ -1391,7 +1391,6 @@ def validate_products_selected_section(self, expected_product_name,
13911391
logger.info(f"✓ [Soft] Price found: {expected_price_pattern}")
13921392
else:
13931393
# Also try a generic price regex as fallback
1394-
import re
13951394
price_match = re.search(r'\$\d+\.\d{2}\s*usd', section_text_lower)
13961395
if price_match:
13971396
logger.info(

content-gen/tests/e2e-test/tests/test_content_gen_gp_tc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Test module for Content Generation golden path test cases."""
22
import logging
33
import time
4-
import pytest
54

65
from pages.HomePage import HomePage
76
from config.constants import URL
@@ -691,6 +690,3 @@ def test_validate_clear_all_chat_history(login_logout, request):
691690
log_test_failure(start_time, e)
692691
raise
693692

694-
695-
696-

0 commit comments

Comments
 (0)