diracx-testing 0.0.1a45__tar.gz → 0.0.1a47__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.
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/PKG-INFO +2 -2
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/pyproject.toml +1 -1
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/client_generation.py +4 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/utils.py +0 -5
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/.gitignore +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/README.md +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/__init__.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/__main__.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/client_generation_pytest.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/dummy_osdb.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/entrypoints.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/mock_osdb.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/osdb.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/routers.py +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/scripts/collect_demo_coverage.sh +0 -0
- {diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/time.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: diracx-testing
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.1a47
|
4
4
|
Summary: TODO
|
5
5
|
License: GPL-3.0-only
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
@@ -12,7 +12,7 @@ Requires-Python: >=3.11
|
|
12
12
|
Requires-Dist: httpx
|
13
13
|
Requires-Dist: joserfc
|
14
14
|
Requires-Dist: pytest
|
15
|
-
Requires-Dist: pytest-asyncio
|
15
|
+
Requires-Dist: pytest-asyncio==1.0.0
|
16
16
|
Requires-Dist: pytest-cov
|
17
17
|
Requires-Dist: pytest-xdist
|
18
18
|
Requires-Dist: uuid-utils
|
@@ -8,6 +8,7 @@ import argparse
|
|
8
8
|
import ast
|
9
9
|
import importlib.util
|
10
10
|
import json
|
11
|
+
import os
|
11
12
|
import shlex
|
12
13
|
import subprocess
|
13
14
|
import sys
|
@@ -165,6 +166,9 @@ def regenerate_client(openapi_spec: Path, client_module: str):
|
|
165
166
|
f"--output-folder={client_root}",
|
166
167
|
]
|
167
168
|
|
169
|
+
if "AUTOREST_HOME" in os.environ:
|
170
|
+
os.makedirs(os.environ["AUTOREST_HOME"], exist_ok=True)
|
171
|
+
|
168
172
|
# ruff: disable=S603
|
169
173
|
subprocess.run(cmd, check=True)
|
170
174
|
|
@@ -138,7 +138,6 @@ class UnavailableDependency:
|
|
138
138
|
|
139
139
|
|
140
140
|
class ClientFactory:
|
141
|
-
|
142
141
|
def __init__(
|
143
142
|
self,
|
144
143
|
tmp_path_factory,
|
@@ -171,7 +170,6 @@ class ClientFactory:
|
|
171
170
|
access_payload: AccessTokenPayload,
|
172
171
|
refresh_payload: RefreshTokenPayload | None,
|
173
172
|
):
|
174
|
-
|
175
173
|
return {"PolicySpecific": "OpenAccessForTest"}, {}
|
176
174
|
|
177
175
|
enabled_systems = {
|
@@ -245,13 +243,11 @@ class ClientFactory:
|
|
245
243
|
|
246
244
|
@contextlib.contextmanager
|
247
245
|
def configure(self, enabled_dependencies):
|
248
|
-
|
249
246
|
assert (
|
250
247
|
self.app.dependency_overrides == {} and self.app.lifetime_functions == []
|
251
248
|
), "configure cannot be nested"
|
252
249
|
|
253
250
|
for k, v in self.all_dependency_overrides.items():
|
254
|
-
|
255
251
|
class_name = k.__self__.__name__
|
256
252
|
|
257
253
|
if class_name in enabled_dependencies:
|
@@ -292,7 +288,6 @@ class ClientFactory:
|
|
292
288
|
BaseSQLDB.transaction.__func__,
|
293
289
|
BaseOSDB.session.__func__,
|
294
290
|
):
|
295
|
-
|
296
291
|
continue
|
297
292
|
|
298
293
|
# The first argument of the overridden BaseSQLDB.transaction is the DB object
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diracx_testing-0.0.1a45 → diracx_testing-0.0.1a47}/src/diracx/testing/client_generation_pytest.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|