dve-lumipy-testing 1.0.409__py3-none-any.whl → 1.0.411__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.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/METADATA +3 -3
- {dve_lumipy_testing-1.0.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/RECORD +8 -8
- {dve_lumipy_testing-1.0.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/WHEEL +1 -1
- lumipy/provider/max_version.py +1 -1
- lumipy/test/unit/__init__.py +2 -0
- lumipy/test/unit/cli_tests/test_cli.py +18 -0
- {dve_lumipy_testing-1.0.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/entry_points.txt +0 -0
- {dve_lumipy_testing-1.0.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dve-lumipy-testing
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.411
|
|
4
4
|
Summary: Python library for Luminesce
|
|
5
5
|
Author: FINBOURNE Technology
|
|
6
6
|
Author-email: engineering@finbourne.com
|
|
@@ -12,13 +12,13 @@ Requires-Dist: pandas>=2.0.0
|
|
|
12
12
|
Requires-Dist: numpy
|
|
13
13
|
Requires-Dist: termcolor
|
|
14
14
|
Requires-Dist: requests
|
|
15
|
-
Requires-Dist: luminesce-sdk==2.1.
|
|
15
|
+
Requires-Dist: luminesce-sdk==2.1.272
|
|
16
16
|
Requires-Dist: ipywidgets
|
|
17
17
|
Requires-Dist: ipytree
|
|
18
18
|
Requires-Dist: uvicorn
|
|
19
19
|
Requires-Dist: fastapi
|
|
20
20
|
Requires-Dist: semver
|
|
21
|
-
Requires-Dist: click
|
|
21
|
+
Requires-Dist: click<8.2.0
|
|
22
22
|
Requires-Dist: tqdm
|
|
23
23
|
Requires-Dist: toml
|
|
24
24
|
Requires-Dist: pydantic>2
|
|
@@ -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=HRzQn26k7dABlH3Isfwz_EJcbqb9AHukt0zO6GeRJYo,28
|
|
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
|
|
@@ -278,9 +278,9 @@ lumipy/test/provider/__init__.py,sha256=GrfZvgfTjrRk6Y8niwJjY60E6DymOrRmuy--1K6L
|
|
|
278
278
|
lumipy/test/provider/context_examples_provider.py,sha256=sBjV6qMRVD-MdFN_EEzz481TOKpPJEcuWwju1xaIUzY,2231
|
|
279
279
|
lumipy/test/provider/test_python_provider.py,sha256=uWpjgofg6F3AHkd077Syurv0gfBWpZ4U5O8vDYXdmwE,8545
|
|
280
280
|
lumipy/test/provider/test_python_provider_with_proxy.py,sha256=DQFc6almOJAkO4Aji9n3LAEpuQWqULntbA3pqGbo7Nk,2477
|
|
281
|
-
lumipy/test/unit/__init__.py,sha256=
|
|
281
|
+
lumipy/test/unit/__init__.py,sha256=sdWvx2NjMpkbRLDrm60untvilc9wDchKBs9rcsUjkqU,5624
|
|
282
282
|
lumipy/test/unit/cli_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
283
|
-
lumipy/test/unit/cli_tests/test_cli.py,sha256=
|
|
283
|
+
lumipy/test/unit/cli_tests/test_cli.py,sha256=2FB2VMEtA8woAFK3e_zivkH8yiXji0OP8liJxkGk-rk,3370
|
|
284
284
|
lumipy/test/unit/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
285
285
|
lumipy/test/unit/client/fake_config.json,sha256=7fD4xWWMVQx15xNJ4eaY-hHyJfcFQ2L-XTRRBdnZ5l8,537
|
|
286
286
|
lumipy/test/unit/client/fake_config_no_access_token.json,sha256=C80NpqiIJk_TrBsHDBy3fdIntkrtBs0Jeemb-cpQgzQ,311
|
|
@@ -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.411.dist-info/METADATA,sha256=LRT4BdAOIM6_w-wpv-jsq3fs3W_ktNO_yPNhRnZG7cM,14828
|
|
383
|
+
dve_lumipy_testing-1.0.411.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
384
|
+
dve_lumipy_testing-1.0.411.dist-info/entry_points.txt,sha256=L7hRlqwmvzHMwaOQzygKLK-gx4k4e1q4Qz5m0DGihW8,46
|
|
385
|
+
dve_lumipy_testing-1.0.411.dist-info/top_level.txt,sha256=DVww8LaQM3Xm0WOgo4JE0epePgCM1xGWWWxh7wuv-CY,7
|
|
386
|
+
dve_lumipy_testing-1.0.411.dist-info/RECORD,,
|
lumipy/provider/max_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
max_version_str = '1.18.
|
|
1
|
+
max_version_str = '1.18.291'
|
lumipy/test/unit/__init__.py
CHANGED
|
@@ -86,6 +86,8 @@ from .provider_tests.test_provider_factory import TestProviderFactory
|
|
|
86
86
|
from .provider_tests.test_provider_manager import TestProviderManager
|
|
87
87
|
from .provider_tests.test_base_provider import TestBaseProvider
|
|
88
88
|
|
|
89
|
+
from .cli_tests.test_cli import TestCli
|
|
90
|
+
|
|
89
91
|
from .queryjob_tests.test_queryjob import TestQueryJob
|
|
90
92
|
|
|
91
93
|
from .config_tests.test_lumipy_config import TestLumipyConfig
|
|
@@ -3,6 +3,9 @@ from click.testing import CliRunner
|
|
|
3
3
|
|
|
4
4
|
from lumipy.cli.commands.setup import setup
|
|
5
5
|
from lumipy.cli.commands.config import config
|
|
6
|
+
from lumipy.cli.commands.run import run
|
|
7
|
+
|
|
8
|
+
from unittest.mock import patch, MagicMock
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
class TestCli(unittest.TestCase):
|
|
@@ -54,3 +57,18 @@ class TestCli(unittest.TestCase):
|
|
|
54
57
|
def test_add_none_domain(self):
|
|
55
58
|
result = self.runner.invoke(config, ['add', '--domain', None, '--token', '3/ //ZX'])
|
|
56
59
|
self.assertEqual(result.exception.args[0], 'Invalid domain provided: None')
|
|
60
|
+
|
|
61
|
+
def test_fbn_run_works_correctly(self):
|
|
62
|
+
# This broke temporarily in click 8.2.0
|
|
63
|
+
|
|
64
|
+
with patch("lumipy.cli.commands.run.lp.ProviderManager") as MockProviderManager:
|
|
65
|
+
pm_instance = MagicMock()
|
|
66
|
+
MockProviderManager.return_value = pm_instance
|
|
67
|
+
|
|
68
|
+
result = self.runner.invoke(run, ['demo', '--fbn-run'])
|
|
69
|
+
|
|
70
|
+
assert result.exit_code == 0
|
|
71
|
+
|
|
72
|
+
MockProviderManager.assert_called_once()
|
|
73
|
+
|
|
74
|
+
assert MockProviderManager.call_args.kwargs.get("_fbn_run") is True
|
{dve_lumipy_testing-1.0.409.dist-info → dve_lumipy_testing-1.0.411.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|