testmu-playwright-python 0.1.3__tar.gz → 0.1.4__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. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/PKG-INFO +1 -1
  2. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/pyproject.toml +1 -1
  3. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/_http.py +14 -1
  4. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu_playwright_python.egg-info/PKG-INFO +1 -1
  5. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/README.md +0 -0
  6. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/setup.cfg +0 -0
  7. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/__init__.py +0 -0
  8. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_capability.py +0 -0
  9. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_config.py +0 -0
  10. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_configure.py +0 -0
  11. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_decorator.py +0 -0
  12. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_errors.py +0 -0
  13. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_heal_patch.py +0 -0
  14. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/__init__.py +0 -0
  15. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/assertion.py +0 -0
  16. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/drag.py +0 -0
  17. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/execute_api.py +0 -0
  18. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/execute_db.py +0 -0
  19. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/execute_js.py +0 -0
  20. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/kane_cli.py +0 -0
  21. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/math.py +0 -0
  22. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/network.py +0 -0
  23. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/smartui.py +0 -0
  24. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/tabs.py +0 -0
  25. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/vision.py +0 -0
  26. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_helpers/wait.py +0 -0
  27. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_matchers.py +0 -0
  28. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_reporter/__init__.py +0 -0
  29. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_reporter/local.py +0 -0
  30. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_reporter/lt.py +0 -0
  31. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_reporter/null.py +0 -0
  32. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_session.py +0 -0
  33. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_step.py +0 -0
  34. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_test_config.py +0 -0
  35. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/_vars.py +0 -0
  36. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu/playwright_async/__init__.py +0 -0
  37. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu_playwright_python.egg-info/SOURCES.txt +0 -0
  38. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu_playwright_python.egg-info/dependency_links.txt +0 -0
  39. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu_playwright_python.egg-info/requires.txt +0 -0
  40. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/testmu_playwright_python.egg-info/top_level.txt +0 -0
  41. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_capability.py +0 -0
  42. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_config.py +0 -0
  43. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_configure.py +0 -0
  44. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_decorator.py +0 -0
  45. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_heal_patch.py +0 -0
  46. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_assertion.py +0 -0
  47. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_execute_api.py +0 -0
  48. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_execute_db.py +0 -0
  49. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_execute_js.py +0 -0
  50. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_network_math.py +0 -0
  51. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_remaining.py +0 -0
  52. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_tabs_drag.py +0 -0
  53. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helper_vision.py +0 -0
  54. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_helpers_stub.py +0 -0
  55. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_integration.py +0 -0
  56. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_step.py +0 -0
  57. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_test_config.py +0 -0
  58. {testmu_playwright_python-0.1.3 → testmu_playwright_python-0.1.4}/tests/test_vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testmu-playwright-python
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Testmu binding for Playwright Python — thin test runtime for LambdaTest exports
5
5
  Author-email: LambdaTest <engineering@lambdatest.com>
6
6
  License-Expression: LicenseRef-Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "testmu-playwright-python"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Testmu binding for Playwright Python — thin test runtime for LambdaTest exports"
9
9
  requires-python = ">=3.11"
10
10
  license = "LicenseRef-Proprietary"
@@ -2,6 +2,11 @@
2
2
 
3
3
  All smart helpers (vision, assertion, wait, network) call LT-hosted
4
4
  endpoints that require Basic auth via LT_USERNAME + LT_ACCESS_KEY.
5
+
6
+ Also threads session tracking headers (x-session-id, x-source) so the
7
+ LT backend can distinguish local runs from HyperExecute runs. Forge
8
+ sets TESTMUAI_SOURCE=hyperexecute in all cloud YAML paths; locally we
9
+ default to "local".
5
10
  """
6
11
  import base64
7
12
  import os
@@ -10,11 +15,19 @@ import aiohttp
10
15
 
11
16
 
12
17
  def create_session(**kwargs) -> aiohttp.ClientSession:
13
- """Create an aiohttp session with LT Basic auth headers."""
18
+ """Create an aiohttp session with LT Basic auth + tracking headers."""
14
19
  headers = kwargs.pop("headers", {})
20
+
15
21
  username = os.getenv("LT_USERNAME", "")
16
22
  access_key = os.getenv("LT_ACCESS_KEY", "")
17
23
  if username and access_key:
18
24
  auth = base64.b64encode(f"{username}:{access_key}".encode()).decode()
19
25
  headers["Authorization"] = f"Basic {auth}"
26
+
27
+ session_id = os.getenv("TESTMUAI_SESSION_ID", "")
28
+ if session_id:
29
+ headers["x-session-id"] = session_id
30
+
31
+ headers["x-source"] = os.getenv("TESTMUAI_SOURCE", "local")
32
+
20
33
  return aiohttp.ClientSession(headers=headers, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testmu-playwright-python
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Testmu binding for Playwright Python — thin test runtime for LambdaTest exports
5
5
  Author-email: LambdaTest <engineering@lambdatest.com>
6
6
  License-Expression: LicenseRef-Proprietary