Promium 3.6.2__tar.gz → 3.6.3__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.
Files changed (58) hide show
  1. {promium-3.6.2 → promium-3.6.3}/PKG-INFO +1 -1
  2. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/PKG-INFO +1 -1
  3. {promium-3.6.2 → promium-3.6.3}/promium/assertions.py +8 -8
  4. {promium-3.6.2 → promium-3.6.3}/promium/device_config.py +9 -7
  5. {promium-3.6.2 → promium-3.6.3}/promium/plugin.py +0 -19
  6. {promium-3.6.2 → promium-3.6.3}/setup.py +1 -1
  7. {promium-3.6.2 → promium-3.6.3}/LICENSE +0 -0
  8. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/SOURCES.txt +0 -0
  9. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/dependency_links.txt +0 -0
  10. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/entry_points.txt +0 -0
  11. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/requires.txt +0 -0
  12. {promium-3.6.2 → promium-3.6.3}/Promium.egg-info/top_level.txt +0 -0
  13. {promium-3.6.2 → promium-3.6.3}/README.rst +0 -0
  14. {promium-3.6.2 → promium-3.6.3}/doc/__init__.py +0 -0
  15. {promium-3.6.2 → promium-3.6.3}/doc/conf.py +0 -0
  16. {promium-3.6.2 → promium-3.6.3}/promium/__init__.py +0 -0
  17. {promium-3.6.2 → promium-3.6.3}/promium/base.py +0 -0
  18. {promium-3.6.2 → promium-3.6.3}/promium/browsers.py +0 -0
  19. {promium-3.6.2 → promium-3.6.3}/promium/common.py +0 -0
  20. {promium-3.6.2 → promium-3.6.3}/promium/elements/__init__.py +0 -0
  21. {promium-3.6.2 → promium-3.6.3}/promium/elements/checkbox.py +0 -0
  22. {promium-3.6.2 → promium-3.6.3}/promium/elements/drop_downs.py +0 -0
  23. {promium-3.6.2 → promium-3.6.3}/promium/elements/frame.py +0 -0
  24. {promium-3.6.2 → promium-3.6.3}/promium/elements/input_field.py +0 -0
  25. {promium-3.6.2 → promium-3.6.3}/promium/elements/link.py +0 -0
  26. {promium-3.6.2 → promium-3.6.3}/promium/elements/multiselect_listbox.py +0 -0
  27. {promium-3.6.2 → promium-3.6.3}/promium/elements/radio_button.py +0 -0
  28. {promium-3.6.2 → promium-3.6.3}/promium/elements/textarea_field.py +0 -0
  29. {promium-3.6.2 → promium-3.6.3}/promium/elements/upload_button.py +0 -0
  30. {promium-3.6.2 → promium-3.6.3}/promium/exceptions.py +0 -0
  31. {promium-3.6.2 → promium-3.6.3}/promium/expected_conditions.py +0 -0
  32. {promium-3.6.2 → promium-3.6.3}/promium/helpers.py +0 -0
  33. {promium-3.6.2 → promium-3.6.3}/promium/logger.py +0 -0
  34. {promium-3.6.2 → promium-3.6.3}/promium/support/__init__.py +0 -0
  35. {promium-3.6.2 → promium-3.6.3}/promium/support/settings.py +0 -0
  36. {promium-3.6.2 → promium-3.6.3}/promium/test_case.py +0 -0
  37. {promium-3.6.2 → promium-3.6.3}/promium/waits.py +0 -0
  38. {promium-3.6.2 → promium-3.6.3}/setup.cfg +0 -0
  39. {promium-3.6.2 → promium-3.6.3}/tests/__init__.py +0 -0
  40. {promium-3.6.2 → promium-3.6.3}/tests/config.py +0 -0
  41. {promium-3.6.2 → promium-3.6.3}/tests/conftest.py +0 -0
  42. {promium-3.6.2 → promium-3.6.3}/tests/pages/__init__.py +0 -0
  43. {promium-3.6.2 → promium-3.6.3}/tests/pages/catalog_404_page.py +0 -0
  44. {promium-3.6.2 → promium-3.6.3}/tests/pages/catalog_gallery_page.py +0 -0
  45. {promium-3.6.2 → promium-3.6.3}/tests/settings/__init__.py +0 -0
  46. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_base.py +0 -0
  47. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_chrome.py +0 -0
  48. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_edge.py +0 -0
  49. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_firefox.py +0 -0
  50. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_ie.py +0 -0
  51. {promium-3.6.2 → promium-3.6.3}/tests/settings/test_opera.py +0 -0
  52. {promium-3.6.2 → promium-3.6.3}/tests/test_catalog_404.py +0 -0
  53. {promium-3.6.2 → promium-3.6.3}/tests/test_catalog_gallery.py +0 -0
  54. {promium-3.6.2 → promium-3.6.3}/tests/test_enviroment.py +0 -0
  55. {promium-3.6.2 → promium-3.6.3}/tests/test_requests.py +0 -0
  56. {promium-3.6.2 → promium-3.6.3}/tests/test_soft_asserts.py +0 -0
  57. {promium-3.6.2 → promium-3.6.3}/tests/test_waits.py +0 -0
  58. {promium-3.6.2 → promium-3.6.3}/tests/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Promium
3
- Version: 3.6.2
3
+ Version: 3.6.3
4
4
  Summary: Selenium wrapper for testing Web UI
5
5
  Author: Denis Korytkin, Nataliia Guieva, Roman Zaporozhets, Vladimir Kritov, Oleh Dykusha
6
6
  Project-URL: Home page, https://none
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Promium
3
- Version: 3.6.2
3
+ Version: 3.6.3
4
4
  Summary: Selenium wrapper for testing Web UI
5
5
  Author: Denis Korytkin, Nataliia Guieva, Roman Zaporozhets, Vladimir Kritov, Oleh Dykusha
6
6
  Project-URL: Home page, https://none
@@ -108,11 +108,6 @@ class BaseSoftAssertion(object):
108
108
  with_screen=False,
109
109
  ):
110
110
  """Just like self.soft_assert_true(current == expected)"""
111
- message = (
112
- f"Current and expected has different data types: "
113
- f"current is {type(current)}, expected is {type(expected)}\n"
114
- if type(current) != type(expected) else ""
115
- )
116
111
  diff = None
117
112
  if type(current) is list and type(expected) is list:
118
113
  diff = DeepDiff(current, expected, ignore_order=True)
@@ -122,12 +117,17 @@ class BaseSoftAssertion(object):
122
117
  if len(current_splitlines) > 1 or len(expected_splitlines) > 1:
123
118
  diff = DeepDiff(current_splitlines, expected_splitlines)
124
119
  difference = f"\nDifference:\n{convert_container(diff)}" if diff else ""
120
+
121
+ type_current = type_expected = ''
122
+ if type(current) != type(expected):
123
+ type_current = f'({type(current)})'
124
+ type_expected = f'({type(expected)})'
125
+
125
126
  assert_message = (
126
127
  f"{base_msg(msg)}\n"
127
- f"Current - {convert_container(current)}\n"
128
- f"Expected - {convert_container(expected)}\n"
128
+ f"Current - {convert_container(current)} {type_current}\n"
129
+ f"Expected - {convert_container(expected)} {type_expected}\n"
129
130
  f"{difference}"
130
- f"{message}"
131
131
  )
132
132
  return self.soft_assert_true(
133
133
  current == expected, assert_message, with_screen
@@ -1,11 +1,12 @@
1
-
1
+ import os
2
2
  from typing import NamedTuple
3
3
 
4
4
 
5
5
  DEFAULT_USER_AGENT_ANDROID = (
6
- "Mozilla/5.0 (Linux; Android 14; SM-G960U) "
7
- "AppleWebKit/537.36 (KHTML, like Gecko) "
8
- "Chrome/131.0.0.0 Mobile Safari/537.36"
6
+ f"Mozilla/5.0 (Linux; Android 14; SM-G960U) "
7
+ f"AppleWebKit/537.36 (KHTML, like Gecko) "
8
+ f"Chrome/{os.environ.get('GOOGLE_CHROME_VERSION', '131.0.6778.39')} "
9
+ f"Mobile Safari/537.36"
9
10
  )
10
11
  DEFAULT_USER_AGENT_IOS = (
11
12
  "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) "
@@ -13,9 +14,10 @@ DEFAULT_USER_AGENT_IOS = (
13
14
  "Version/17.4.1 Mobile/15E148 Safari/604.1"
14
15
  )
15
16
  DEFAULT_USER_AGENT_HUAWEI = (
16
- "Mozilla/5.0 (Linux; Android 11; HUAWEI Mate 40 Pro Build/HUAWEIMate40Pro; "
17
- "xx-xx) AppleWebKit/537.36 (KHTML, like Gecko) "
18
- "Chrome/131.0.0.0 Mobile Safari/537.36"
17
+ f"Mozilla/5.0 (Linux; Android 11; HUAWEI Mate 40 Pro Build/HUAWEIMate40Pro;"
18
+ f" xx-xx) AppleWebKit/537.36 (KHTML, like Gecko) "
19
+ f"Chrome/{os.environ.get('GOOGLE_CHROME_VERSION', '131.0.6778.39')} "
20
+ f"Mobile Safari/537.36"
19
21
  )
20
22
 
21
23
 
@@ -31,24 +31,6 @@ DEFAULT_HEADERS = {
31
31
  }
32
32
 
33
33
 
34
- def pytest_sessionstart(session):
35
- if hasattr(session.config, 'cache'):
36
- cache = session.config.cache
37
- cache_path = f"cache/{session.config.lastfailed_file}"
38
- print("Lastfailed:", len(cache.get(cache_path, set())))
39
- session.run_duration = datetime.datetime.now()
40
- print("\nPytest session start %s\n" % session.run_duration)
41
-
42
-
43
- @pytest.mark.trylast
44
- def pytest_sessionfinish(session):
45
- finish = datetime.datetime.now()
46
- duration = datetime.timedelta(
47
- seconds=(finish - session.run_duration).seconds
48
- )
49
- print("\n\nPytest session finish %s (duration=%s)\n" % (finish, duration))
50
-
51
-
52
34
  @pytest.hookimpl
53
35
  def pytest_addoption(parser):
54
36
  parser.addoption(
@@ -408,7 +390,6 @@ def pytest_configure(config):
408
390
  'ignore:A true SSLContext object is not available, '
409
391
  'ignore:Unverified HTTPS request is being made'
410
392
  )
411
- os.environ['TEST_CASE'] = "True"
412
393
 
413
394
  if config.getoption('--headless'):
414
395
  os.environ['HEADLESS'] = 'Enabled'
@@ -19,7 +19,7 @@ REQUIREMENTS = [
19
19
 
20
20
  setup(
21
21
  name='Promium',
22
- version='3.6.2',
22
+ version='3.6.3',
23
23
  install_requires=REQUIREMENTS,
24
24
  author='Denis Korytkin, Nataliia Guieva, '
25
25
  'Roman Zaporozhets, Vladimir Kritov, '
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