flake8 fixes

This commit is contained in:
Kenneth Kehl
2023-09-08 14:12:23 -07:00
parent 863625de6a
commit c7de9dcf6a
3 changed files with 4 additions and 10 deletions

View File

@@ -31,7 +31,6 @@ pyexcel-xlsx = "==0.6.0"
openpyxl = "==3.0.10" openpyxl = "==3.0.10"
pyproj = "==3.6.0" pyproj = "==3.6.0"
python-dotenv = "==1.0.0" python-dotenv = "==1.0.0"
poetry-dotenv-plugin = "==0.2.0"
pytz = "==2023.3" pytz = "==2023.3"
rtreelib = "==0.2.0" rtreelib = "==0.2.0"
werkzeug = "~=2.3" werkzeug = "~=2.3"

View File

@@ -21,7 +21,6 @@ def _bypass_sign_in(end_to_end_context):
def test_accounts_page(end_to_end_context): def test_accounts_page(end_to_end_context):
page = _bypass_sign_in(end_to_end_context) page = _bypass_sign_in(end_to_end_context)
# Check the page title exists and matches what we expect. # Check the page title exists and matches what we expect.
@@ -33,15 +32,14 @@ def test_add_new_service_workflow(end_to_end_context):
page = end_to_end_context.new_page() page = end_to_end_context.new_page()
page.goto(os.getenv("NOTIFY_E2E_TEST_URI")) page.goto(os.getenv("NOTIFY_E2E_TEST_URI"))
#sign_in_button = page.get_by_role("link", name="Sign in") # sign_in_button = page.get_by_role("link", name="Sign in")
#
# Test trying to sign in. Because we are loading the email and password # Test trying to sign in. Because we are loading the email and password
#sign_in_button.click() # sign_in_button.click()
#
# Wait for the next page to fully load. # Wait for the next page to fully load.
page.wait_for_load_state("domcontentloaded") page.wait_for_load_state("domcontentloaded")
# Prepare for adding a new service later in the test. # Prepare for adding a new service later in the test.
current_date_time = datetime.datetime.now() current_date_time = datetime.datetime.now()
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format( new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(
@@ -103,7 +101,6 @@ def test_add_new_service_workflow(end_to_end_context):
# Fill in the form. # Fill in the form.
service_name_input.fill(new_service_name) service_name_input.fill(new_service_name)
print(f"page before federal radio_button click {page}")
expect(federal_radio_button).to_be_enabled() expect(federal_radio_button).to_be_enabled()
# Trying to click directly on the radio button resulted in a "not in viewport error" and this is the # Trying to click directly on the radio button resulted in a "not in viewport error" and this is the
# suggested workaround. Googling, the reason seems to be that there might be some (invisible?) css positioned # suggested workaround. Googling, the reason seems to be that there might be some (invisible?) css positioned

View File

@@ -1,7 +1,6 @@
import os import os
import re import re
import pytest
from playwright.sync_api import expect from playwright.sync_api import expect
@@ -22,7 +21,6 @@ def test_landing_page(browser):
) )
sign_in_button = page.get_by_role("link", name="Sign in") sign_in_button = page.get_by_role("link", name="Sign in")
benefits_studio_email = page.get_by_role("link", name="tts-benefits-studio@gsa.gov") benefits_studio_email = page.get_by_role("link", name="tts-benefits-studio@gsa.gov")
print(page)
# Check to make sure the elements are visible. # Check to make sure the elements are visible.
expect(main_header).to_be_visible() expect(main_header).to_be_visible()