sfq 0.0.25__tar.gz → 0.0.27__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.
- {sfq-0.0.25 → sfq-0.0.27}/PKG-INFO +1 -1
- {sfq-0.0.25 → sfq-0.0.27}/pyproject.toml +1 -1
- {sfq-0.0.25 → sfq-0.0.27}/src/sfq/__init__.py +1 -1
- {sfq-0.0.25 → sfq-0.0.27}/tests/test_limits_api.py +1 -1
- {sfq-0.0.25 → sfq-0.0.27}/tests/test_log_trace_redact.py +1 -1
- {sfq-0.0.25 → sfq-0.0.27}/uv.lock +1 -1
- sfq-0.0.25/tests/conftest.py +0 -16
- {sfq-0.0.25 → sfq-0.0.27}/.github/workflows/publish.yml +0 -0
- {sfq-0.0.25 → sfq-0.0.27}/.gitignore +0 -0
- {sfq-0.0.25 → sfq-0.0.27}/.python-version +0 -0
- {sfq-0.0.25 → sfq-0.0.27}/README.md +0 -0
- {sfq-0.0.25 → sfq-0.0.27}/src/sfq/_cometd.py +0 -0
- {sfq-0.0.25 → sfq-0.0.27}/src/sfq/py.typed +0 -0
@@ -90,7 +90,7 @@ class SFAuth:
|
|
90
90
|
access_token: Optional[str] = None,
|
91
91
|
token_expiration_time: Optional[float] = None,
|
92
92
|
token_lifetime: int = 15 * 60,
|
93
|
-
user_agent: str = "sfq/0.0.
|
93
|
+
user_agent: str = "sfq/0.0.27",
|
94
94
|
sforce_client: str = "_auto",
|
95
95
|
proxy: str = "_auto",
|
96
96
|
) -> None:
|
@@ -22,7 +22,7 @@ def sf_instance():
|
|
22
22
|
|
23
23
|
missing_vars = [var for var in required_env_vars if not os.getenv(var)]
|
24
24
|
if missing_vars:
|
25
|
-
pytest.
|
25
|
+
pytest.fail(f"Missing required env vars: {', '.join(missing_vars)}")
|
26
26
|
|
27
27
|
sf = SFAuth(
|
28
28
|
instance_url=os.getenv("SF_INSTANCE_URL"),
|
@@ -24,7 +24,7 @@ def sf_instance():
|
|
24
24
|
|
25
25
|
missing_vars = [var for var in required_env_vars if not os.getenv(var)]
|
26
26
|
if missing_vars:
|
27
|
-
pytest.
|
27
|
+
pytest.fail(f"Missing required env vars: {', '.join(missing_vars)}")
|
28
28
|
|
29
29
|
sf = SFAuth(
|
30
30
|
instance_url=os.getenv("SF_INSTANCE_URL"),
|
sfq-0.0.25/tests/conftest.py
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# tests/conftest.py
|
2
|
-
|
3
|
-
executed_tests = 0
|
4
|
-
|
5
|
-
def pytest_runtest_logreport(report):
|
6
|
-
global executed_tests
|
7
|
-
if report.when == "call" and report.passed:
|
8
|
-
executed_tests += 1
|
9
|
-
elif report.when == "call" and report.failed:
|
10
|
-
executed_tests += 1
|
11
|
-
|
12
|
-
def pytest_sessionfinish(session, exitstatus):
|
13
|
-
if session.testscollected > 0 and executed_tests == 0:
|
14
|
-
print()
|
15
|
-
print("❌ Pytest collected tests, but all were skipped. Failing the run.")
|
16
|
-
session.exitstatus = 1
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|