diracx-testing 0.0.1a45__py3-none-any.whl → 0.0.1a47__py3-none-any.whl

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.
@@ -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
 
diracx/testing/utils.py CHANGED
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diracx-testing
3
- Version: 0.0.1a45
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
@@ -1,6 +1,6 @@
1
1
  diracx/testing/__init__.py,sha256=ocW2U2SaWC9zvTjWMVhOQtFQ4rqSJbsCJXCMUpBj0rs,904
2
2
  diracx/testing/__main__.py,sha256=cd6HxeVKqVrxk32uAB_4O0PzzAo_rzwEK2GN7kND8XY,2419
3
- diracx/testing/client_generation.py,sha256=B1_b1ku2GEJkDqfDrro3ZpwMbzE5Pxo7fkZ3ew0VYe4,7949
3
+ diracx/testing/client_generation.py,sha256=geumbTEV5jVZJCICGxMpRrg9AaLJlJuxECkrgXvYvnc,8062
4
4
  diracx/testing/client_generation_pytest.py,sha256=c4lvwi6U76yu_iNT6N3zgrdVsBhMPNZi50CXVXYNsi4,1173
5
5
  diracx/testing/dummy_osdb.py,sha256=ptLrrreOHJBKMV7S1pR_k83jl-aLKvw7bFZufB6570Y,916
6
6
  diracx/testing/entrypoints.py,sha256=ql7byyUOnUBdDoiN5xznlUTQSbD1YCNy4UF5t9MBhgc,2330
@@ -8,8 +8,8 @@ diracx/testing/mock_osdb.py,sha256=2pl9yKV1-e5kzf6meBZnhoc1i0ySAJ8IdnP3r1bOwcI,6
8
8
  diracx/testing/osdb.py,sha256=m6mUBLnGOoQLTCIBie9P2GhmLMybrgzIrlIYfhF1_Ss,3230
9
9
  diracx/testing/routers.py,sha256=UW-TnikMQgcNxF5sUZD5DWoucGiCpP6s8mYmuahDiSc,979
10
10
  diracx/testing/time.py,sha256=ec2b4yn-52ey8ea1oINdknxtQf-CpPRBIiI15Wa1W2Q,4320
11
- diracx/testing/utils.py,sha256=c8NA1RMPemAUfrec8YfphcsKsauWlIJ1vyOL3-uWjuM,23804
11
+ diracx/testing/utils.py,sha256=cO-HgrRNvTCfI0HXkNxIN5U_Y7nJvHPeqG0e2eOgIp4,23799
12
12
  diracx/testing/scripts/collect_demo_coverage.sh,sha256=EyIuP6rA-g542BHTPL2cD4qrBSm-FQ5y1e0c1qhVcEs,4555
13
- diracx_testing-0.0.1a45.dist-info/METADATA,sha256=FHxCST0jbSX2EM6oNwELxd3Fh1YnP3u3LINJC9jM6f4,593
14
- diracx_testing-0.0.1a45.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- diracx_testing-0.0.1a45.dist-info/RECORD,,
13
+ diracx_testing-0.0.1a47.dist-info/METADATA,sha256=5gq46sl3v0lr39LiO9O-JPGtup0s4hwv2W0Qd6cpK2A,600
14
+ diracx_testing-0.0.1a47.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ diracx_testing-0.0.1a47.dist-info/RECORD,,