dve-lumipy-testing 1.0.359__py3-none-any.whl → 1.0.361__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.
- {dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/METADATA +1 -1
- {dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/RECORD +9 -9
- lumipy/_config_manager.py +3 -2
- lumipy/provider/max_version.py +1 -1
- lumipy/test/integration/test_client.py +2 -2
- lumipy/test/unit/config_tests/test_lumipy_config.py +34 -1
- {dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/WHEEL +0 -0
- {dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/entry_points.txt +0 -0
- {dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
lumipy/__init__.py,sha256=Ei0SkyOIPS-aC-ZSdaHwfiH7xWMBelLY-EXJ0--jzUo,443
|
|
2
|
-
lumipy/_config_manager.py,sha256=
|
|
2
|
+
lumipy/_config_manager.py,sha256=0ziIk7EyZb44uDw84Pw9UBrY9PmcMYe92WbgF58xylM,8675
|
|
3
3
|
lumipy/client.py,sha256=UmVdbdwVLz25yVBmqZNG8k9ii86h7g8xKQoA1g-IT0s,22611
|
|
4
4
|
lumipy/common.py,sha256=wMCeQ8SdCdPiAqyHmVCTy8Wpxs8uJU7sSbYkgu3k5Ls,1701
|
|
5
5
|
lumipy/query_job.py,sha256=f13vvK1n4czNNg0Jxq8ACrVHdZ20bRQi2rAV_HlfKBA,5395
|
|
@@ -78,7 +78,7 @@ lumipy/provider/common.py,sha256=2NMoIDYEkO0km1TcRc_KWZ5NWpo02eBtByKB2_d-mpM,682
|
|
|
78
78
|
lumipy/provider/context.py,sha256=VwsHZO46HP3G9BN4Eot_jQlbfETGKyNg2vG5wm1zL_4,5401
|
|
79
79
|
lumipy/provider/factory.py,sha256=QFuSCT_byJwbFmHF669I2iz0vLAF0T9Or1ghIEUZ0ok,9257
|
|
80
80
|
lumipy/provider/manager.py,sha256=A4bxCO__m5nc9GL8veOLtySbK1giMNDMml_r3B-q8y8,7218
|
|
81
|
-
lumipy/provider/max_version.py,sha256=
|
|
81
|
+
lumipy/provider/max_version.py,sha256=V3_wjW9wgyPlVy40oahUw1oMFOgNx_qmZf3WUWo8aGc,27
|
|
82
82
|
lumipy/provider/metadata.py,sha256=WGfMv_tLn5W29-zMKipqBpueroe0eF-w9Hj_6QRdZAI,5483
|
|
83
83
|
lumipy/provider/provider_sets.py,sha256=Z_VyiN2dBP1xuIdRiuGgyzLD7LfO4wxFvodprME2Uls,1478
|
|
84
84
|
lumipy/provider/implementation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -271,7 +271,7 @@ lumipy/test/data/context_examples/test_titanic_single_bool_column.json,sha256=SC
|
|
|
271
271
|
lumipy/test/data/context_examples/test_titanic_test_ignore.json,sha256=HYEcQ3CGrtZ9sdacVnn8Vs38tJi4B7I2Tqqo1kS5BLY,575
|
|
272
272
|
lumipy/test/integration/__init__.py,sha256=Qb9wYCQF3WMv7emOmpAvnYzvLi3C_dGOqyheycYzp_g,192
|
|
273
273
|
lumipy/test/integration/test_atlas_build_queries.py,sha256=2wS-kW4uwrUleOU1bRYEHvxmxkWevskw4eIzp1dGUXQ,1286
|
|
274
|
-
lumipy/test/integration/test_client.py,sha256=
|
|
274
|
+
lumipy/test/integration/test_client.py,sha256=U2XVRPQBUr0U_aU5IVFTD5tIg3cdLUHRVXQj446WS8U,9950
|
|
275
275
|
lumipy/test/integration/test_direct_providers.py,sha256=SaC1iu7ZKLMF_2lSihmKPM27jRwwfxOXQDdHHKX8VMc,8363
|
|
276
276
|
lumipy/test/integration/test_lumiflex.py,sha256=FM7r7YjYQD0vLNWXY25ceV5jEpFl0r6douAcj5KlBSI,12593
|
|
277
277
|
lumipy/test/provider/__init__.py,sha256=GrfZvgfTjrRk6Y8niwJjY60E6DymOrRmuy--1K6Lzuk,148
|
|
@@ -290,7 +290,7 @@ lumipy/test/unit/common_tests/test_common.py,sha256=xfKCsC2gXTbc0GJDqADXN9PjSQd4
|
|
|
290
290
|
lumipy/test/unit/common_tests/test_table_spec_to_df.py,sha256=FWcjY-omfogWC482w5WtW3ERSmk4-paBtkVMDuF6ris,1662
|
|
291
291
|
lumipy/test/unit/common_tests/test_widgets.py,sha256=5BbpnUU7Updf0jkVJV-yOURUXJjSL8q49QKrlu6LmqM,2858
|
|
292
292
|
lumipy/test/unit/config_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
293
|
-
lumipy/test/unit/config_tests/test_lumipy_config.py,sha256
|
|
293
|
+
lumipy/test/unit/config_tests/test_lumipy_config.py,sha256=-aNRuKJTQQk1P8WY57zOlt6690_L-BCcEmoWYpjDhp0,10546
|
|
294
294
|
lumipy/test/unit/lumiflex_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
295
295
|
lumipy/test/unit/lumiflex_tests/utils.py,sha256=nJ9Qm8ZT4ssWqHMm_zouREFClYYDCFTkfbuhVT1aMNc,12029
|
|
296
296
|
lumipy/test/unit/lumiflex_tests/atlas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -379,8 +379,8 @@ lumipy/test/unit/provider_tests/test_provider_factory.py,sha256=ICHlEiYS-GvKFoI5
|
|
|
379
379
|
lumipy/test/unit/provider_tests/test_provider_manager.py,sha256=-TT-3ZGpDsFKMz4efWIy7TGAUVtZ2gTDa67DiorIioc,13456
|
|
380
380
|
lumipy/test/unit/queryjob_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
381
381
|
lumipy/test/unit/queryjob_tests/test_queryjob.py,sha256=1UE4-VuIkAE6vo0vogq3p2iXtTukiAPxOt5Uankx7c4,1542
|
|
382
|
-
dve_lumipy_testing-1.0.
|
|
383
|
-
dve_lumipy_testing-1.0.
|
|
384
|
-
dve_lumipy_testing-1.0.
|
|
385
|
-
dve_lumipy_testing-1.0.
|
|
386
|
-
dve_lumipy_testing-1.0.
|
|
382
|
+
dve_lumipy_testing-1.0.361.dist-info/METADATA,sha256=3Uv3wvmxuKq3C_0N6--qPRmMN0K1R4Fj0C26xJAEIrI,11856
|
|
383
|
+
dve_lumipy_testing-1.0.361.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
384
|
+
dve_lumipy_testing-1.0.361.dist-info/entry_points.txt,sha256=L7hRlqwmvzHMwaOQzygKLK-gx4k4e1q4Qz5m0DGihW8,46
|
|
385
|
+
dve_lumipy_testing-1.0.361.dist-info/top_level.txt,sha256=DVww8LaQM3Xm0WOgo4JE0epePgCM1xGWWWxh7wuv-CY,7
|
|
386
|
+
dve_lumipy_testing-1.0.361.dist-info/RECORD,,
|
lumipy/_config_manager.py
CHANGED
|
@@ -59,9 +59,10 @@ class ConfigManager:
|
|
|
59
59
|
try:
|
|
60
60
|
self.cfg_path.mkdir(parents=True, exist_ok=True)
|
|
61
61
|
self.cfg_file.touch(exist_ok=True)
|
|
62
|
-
except PermissionError:
|
|
62
|
+
except (PermissionError, OSError) as e:
|
|
63
|
+
err_type = type(e).__name__
|
|
63
64
|
print(
|
|
64
|
-
"Warning: can't write config file to $HOME/.lumipy
|
|
65
|
+
f"Warning: can't write config file to $HOME/.lumipy (Caught {err_type}). "
|
|
65
66
|
"You will not be able to register and use PATs, so should use another auth method such as env vars or "
|
|
66
67
|
"**kwargs. "
|
|
67
68
|
)
|
lumipy/provider/max_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
max_version_str = '1.18.
|
|
1
|
+
max_version_str = '1.18.97'
|
|
@@ -230,8 +230,8 @@ class ClientTests(BaseIntTest):
|
|
|
230
230
|
self.assertTrue(ver_parsed.minor >= 0)
|
|
231
231
|
|
|
232
232
|
def test_get_latest_available_version_in_single_value_range(self):
|
|
233
|
-
ver = self.client._get_latest_available_version_in_range('Python_Providers', "1.
|
|
234
|
-
self.assertEqual(str(ver), "1.
|
|
233
|
+
ver = self.client._get_latest_available_version_in_range('Python_Providers', "1.18.68", "1.18.68")
|
|
234
|
+
self.assertEqual(str(ver), "1.18.68")
|
|
235
235
|
|
|
236
236
|
def test_get_latest_available_version_in_range_bad_binary_name_unhappy(self):
|
|
237
237
|
try:
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import unittest
|
|
2
|
+
from contextlib import redirect_stdout
|
|
2
3
|
from lumipy._config_manager import ConfigManager
|
|
3
4
|
from pathlib import Path
|
|
4
5
|
import tempfile
|
|
5
6
|
import shutil
|
|
6
|
-
|
|
7
|
+
import io
|
|
8
|
+
from unittest.mock import patch
|
|
7
9
|
|
|
8
10
|
class TestLumipyConfig(unittest.TestCase):
|
|
9
11
|
|
|
@@ -272,3 +274,34 @@ class TestLumipyConfig(unittest.TestCase):
|
|
|
272
274
|
|
|
273
275
|
s = str(ve.exception)
|
|
274
276
|
self.assertIn(f'Domain fbn-dom not found in config. You can add it with config.add("fbn-dom", <PAT>).', s)
|
|
277
|
+
|
|
278
|
+
def test_init_config_manager_permission_error(self):
|
|
279
|
+
with patch.object(Path, "mkdir", side_effect=PermissionError("Mocked PermissionError")):
|
|
280
|
+
captured_output = io.StringIO()
|
|
281
|
+
with redirect_stdout(captured_output):
|
|
282
|
+
try:
|
|
283
|
+
_ = ConfigManager('config')
|
|
284
|
+
except Exception as e:
|
|
285
|
+
self.fail(f"ConfigManager raised an error instead of handling it. Error: {e}")
|
|
286
|
+
|
|
287
|
+
output = captured_output.getvalue()
|
|
288
|
+
self.assertIn(
|
|
289
|
+
"Warning: can't write config file to $HOME/.lumipy (Caught PermissionError). You will not be able to register and use PATs, so should use another auth method such as env vars or **kwargs.",
|
|
290
|
+
output
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def test_init_config_manager_os_error(self):
|
|
295
|
+
with patch.object(Path, "mkdir", side_effect=OSError("Mocked OSError")):
|
|
296
|
+
captured_output = io.StringIO()
|
|
297
|
+
with redirect_stdout(captured_output):
|
|
298
|
+
try:
|
|
299
|
+
_ = ConfigManager('config')
|
|
300
|
+
except Exception as e:
|
|
301
|
+
self.fail(f"ConfigManager raised an error instead of handling it. Error: {e}")
|
|
302
|
+
|
|
303
|
+
output = captured_output.getvalue()
|
|
304
|
+
self.assertIn(
|
|
305
|
+
"Warning: can't write config file to $HOME/.lumipy (Caught OSError). You will not be able to register and use PATs, so should use another auth method such as env vars or **kwargs.",
|
|
306
|
+
output
|
|
307
|
+
)
|
|
File without changes
|
{dve_lumipy_testing-1.0.359.dist-info → dve_lumipy_testing-1.0.361.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|