diracx-testing 0.0.1a18__py3-none-any.whl → 0.0.1a20__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.
- diracx/testing/__init__.py +8 -4
- {diracx_testing-0.0.1a18.dist-info → diracx_testing-0.0.1a20.dist-info}/METADATA +1 -2
- diracx_testing-0.0.1a20.dist-info/RECORD +9 -0
- {diracx_testing-0.0.1a18.dist-info → diracx_testing-0.0.1a20.dist-info}/WHEEL +1 -1
- diracx_testing-0.0.1a18.dist-info/RECORD +0 -9
- {diracx_testing-0.0.1a18.dist-info → diracx_testing-0.0.1a20.dist-info}/top_level.txt +0 -0
diracx/testing/__init__.py
CHANGED
@@ -241,6 +241,7 @@ class ClientFactory:
|
|
241
241
|
|
242
242
|
@contextlib.contextmanager
|
243
243
|
def configure(self, enabled_dependencies):
|
244
|
+
|
244
245
|
assert (
|
245
246
|
self.app.dependency_overrides == {} and self.app.lifetime_functions == []
|
246
247
|
), "configure cannot be nested"
|
@@ -422,7 +423,7 @@ def with_config_repo(tmp_path_factory):
|
|
422
423
|
"DefaultProxyLifeTime": 432000,
|
423
424
|
"DefaultStorageQuota": 2000,
|
424
425
|
"IdP": {
|
425
|
-
"URL": "https://
|
426
|
+
"URL": "https://idp-server.invalid",
|
426
427
|
"ClientID": "test-idp",
|
427
428
|
},
|
428
429
|
"Users": {
|
@@ -443,6 +444,10 @@ def with_config_repo(tmp_path_factory):
|
|
443
444
|
"c935e5ed-2g0e-5ff9-9eg6-d1bf66e57152",
|
444
445
|
],
|
445
446
|
},
|
447
|
+
"lhcb_prmgr": {
|
448
|
+
"Properties": ["NormalUser", "ProductionManagement"],
|
449
|
+
"Users": ["b824d4dc-1f9d-4ee8-8df5-c0ae55d46041"],
|
450
|
+
},
|
446
451
|
"lhcb_tokenmgr": {
|
447
452
|
"Properties": ["NormalUser", "ProxyManagement"],
|
448
453
|
"Users": ["c935e5ed-2g0e-5ff9-9eg6-d1bf66e57152"],
|
@@ -532,8 +537,8 @@ def cli_env(monkeypatch, tmp_path, demo_urls, demo_dir):
|
|
532
537
|
async def with_cli_login(monkeypatch, capfd, cli_env, tmp_path):
|
533
538
|
try:
|
534
539
|
credentials = await test_login(monkeypatch, capfd, cli_env)
|
535
|
-
except Exception:
|
536
|
-
pytest.skip("Login failed, fix test_login to re-enable this test")
|
540
|
+
except Exception as e:
|
541
|
+
pytest.skip(f"Login failed, fix test_login to re-enable this test: {e!r}")
|
537
542
|
|
538
543
|
credentials_path = tmp_path / "credentials.json"
|
539
544
|
credentials_path.write_text(credentials)
|
@@ -575,7 +580,6 @@ async def test_login(monkeypatch, capfd, cli_env):
|
|
575
580
|
expected_credentials_path = Path(
|
576
581
|
cli_env["HOME"], ".cache", "diracx", "credentials.json"
|
577
582
|
)
|
578
|
-
|
579
583
|
# Ensure the credentials file does not exist before logging in
|
580
584
|
assert not expected_credentials_path.exists()
|
581
585
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: diracx-testing
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.1a20
|
4
4
|
Summary: TODO
|
5
5
|
License: GPL-3.0-only
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
@@ -16,4 +16,3 @@ Requires-Dist: pytest-cov
|
|
16
16
|
Requires-Dist: pytest-xdist
|
17
17
|
Provides-Extra: testing
|
18
18
|
Requires-Dist: diracx-testing; extra == "testing"
|
19
|
-
|
@@ -0,0 +1,9 @@
|
|
1
|
+
diracx/testing/__init__.py,sha256=vuPYuD45HWaIJKJ2mp8GCHWMy7JH7q4YsEmJF_2BEgQ,21658
|
2
|
+
diracx/testing/dummy_osdb.py,sha256=bNk3LF8KgMuQx3RVFNYuw4hMmpG2A80sZ58rEZqHo7M,907
|
3
|
+
diracx/testing/mock_osdb.py,sha256=1TFb3b0xDb2vIy4Q4V23VtrsWoT3RE5kOZmOs8n541g,5862
|
4
|
+
diracx/testing/osdb.py,sha256=m6mUBLnGOoQLTCIBie9P2GhmLMybrgzIrlIYfhF1_Ss,3230
|
5
|
+
diracx/testing/routers.py,sha256=UW-TnikMQgcNxF5sUZD5DWoucGiCpP6s8mYmuahDiSc,979
|
6
|
+
diracx_testing-0.0.1a20.dist-info/METADATA,sha256=GMrpB-ANxo89dX7e3Bpmn5jLHYHh3nXRm71rWBRoFIg,613
|
7
|
+
diracx_testing-0.0.1a20.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
+
diracx_testing-0.0.1a20.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
9
|
+
diracx_testing-0.0.1a20.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
diracx/testing/__init__.py,sha256=nC59kW0jD8na0LFf73m7xmRB5uBP0cuvO4N2qGPmRyM,21420
|
2
|
-
diracx/testing/dummy_osdb.py,sha256=bNk3LF8KgMuQx3RVFNYuw4hMmpG2A80sZ58rEZqHo7M,907
|
3
|
-
diracx/testing/mock_osdb.py,sha256=1TFb3b0xDb2vIy4Q4V23VtrsWoT3RE5kOZmOs8n541g,5862
|
4
|
-
diracx/testing/osdb.py,sha256=m6mUBLnGOoQLTCIBie9P2GhmLMybrgzIrlIYfhF1_Ss,3230
|
5
|
-
diracx/testing/routers.py,sha256=UW-TnikMQgcNxF5sUZD5DWoucGiCpP6s8mYmuahDiSc,979
|
6
|
-
diracx_testing-0.0.1a18.dist-info/METADATA,sha256=C5zZ-VjMY64BqNPZArdorlO8tGAIaWwi5L46RfpmrhU,614
|
7
|
-
diracx_testing-0.0.1a18.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
8
|
-
diracx_testing-0.0.1a18.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
9
|
-
diracx_testing-0.0.1a18.dist-info/RECORD,,
|
File without changes
|