Promium 3.7.1__tar.gz → 3.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {promium-3.7.1 → promium-3.7.2}/PKG-INFO +1 -1
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/PKG-INFO +1 -1
- {promium-3.7.1 → promium-3.7.2}/promium/plugin.py +14 -6
- {promium-3.7.1 → promium-3.7.2}/setup.py +1 -1
- {promium-3.7.1 → promium-3.7.2}/LICENSE +0 -0
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/SOURCES.txt +0 -0
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/dependency_links.txt +0 -0
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/entry_points.txt +0 -0
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/requires.txt +0 -0
- {promium-3.7.1 → promium-3.7.2}/Promium.egg-info/top_level.txt +0 -0
- {promium-3.7.1 → promium-3.7.2}/README.rst +0 -0
- {promium-3.7.1 → promium-3.7.2}/doc/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/doc/conf.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/_diag.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/assertions.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/base.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/browsers.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/common.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/device_config.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/checkbox.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/drop_downs.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/frame.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/input_field.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/link.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/multiselect_listbox.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/radio_button.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/textarea_field.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/elements/upload_button.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/exceptions.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/expected_conditions.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/helpers.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/logger.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/support/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/support/settings.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/test_case.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/promium/waits.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/pyproject.toml +0 -0
- {promium-3.7.1 → promium-3.7.2}/setup.cfg +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/config.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/conftest.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/pages/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/pages/catalog_404_page.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/pages/catalog_gallery_page.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/__init__.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_base.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_chrome.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_edge.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_firefox.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_ie.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/settings/test_opera.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_catalog_404.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_catalog_gallery.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_enviroment.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_requests.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_soft_asserts.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/test_waits.py +0 -0
- {promium-3.7.1 → promium-3.7.2}/tests/urls.py +0 -0
|
@@ -269,6 +269,12 @@ def logger(request: pytest.FixtureRequest) -> logging.Logger:
|
|
|
269
269
|
return logging.getLogger()
|
|
270
270
|
|
|
271
271
|
|
|
272
|
+
def color_msg(msg: str, color: str = "bold red") -> str:
|
|
273
|
+
if os.getenv("PROMIUM_ASSERTION_PANEL_MONO_COLOR", False): # noqa: PLW1508
|
|
274
|
+
return msg
|
|
275
|
+
return f"[{color}]{msg}[/{color}]"
|
|
276
|
+
|
|
277
|
+
|
|
272
278
|
@pytest.mark.trylast
|
|
273
279
|
def pytest_runtest_call(item: pytest.Item) -> None:
|
|
274
280
|
separator = "-" * 46
|
|
@@ -288,6 +294,10 @@ def pytest_runtest_call(item: pytest.Item) -> None:
|
|
|
288
294
|
PANEL_WIDTH = terminal_width
|
|
289
295
|
except Exception:
|
|
290
296
|
PANEL_WIDTH = terminal_width
|
|
297
|
+
if os.getenv("PROMIUM_ASSERTION_PANEL_MONO_COLOR", False): # noqa: PLW1508
|
|
298
|
+
border_style = "none"
|
|
299
|
+
else:
|
|
300
|
+
border_style = "red"
|
|
291
301
|
|
|
292
302
|
if hasattr(item.config, "assertion_errors"):
|
|
293
303
|
if item.config.assertion_errors:
|
|
@@ -301,8 +311,8 @@ def pytest_runtest_call(item: pytest.Item) -> None:
|
|
|
301
311
|
for error_text in item.config.assertion_errors:
|
|
302
312
|
rich_panel = Panel(
|
|
303
313
|
Text(error_text.strip(), justify="left"),
|
|
304
|
-
title="
|
|
305
|
-
border_style=
|
|
314
|
+
title=color_msg("Soft Assertion Error"),
|
|
315
|
+
border_style=border_style,
|
|
306
316
|
padding=(1, 2),
|
|
307
317
|
)
|
|
308
318
|
console.print(rich_panel)
|
|
@@ -328,10 +338,8 @@ def pytest_runtest_call(item: pytest.Item) -> None:
|
|
|
328
338
|
for error_text in console_errors:
|
|
329
339
|
rich_panel = Panel(
|
|
330
340
|
Text(error_text.strip(), justify="left"),
|
|
331
|
-
title="
|
|
332
|
-
|
|
333
|
-
"[/bold red]",
|
|
334
|
-
border_style="red",
|
|
341
|
+
title=color_msg("Browser console js errors found"),
|
|
342
|
+
border_style=border_style,
|
|
335
343
|
padding=(1, 2),
|
|
336
344
|
)
|
|
337
345
|
console.print(rich_panel)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|