dve-lumipy-testing 1.0.410__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dve-lumipy-testing
3
- Version: 1.0.410
3
+ Version: 1.0.411
4
4
  Summary: Python library for Luminesce
5
5
  Author: FINBOURNE Technology
6
6
  Author-email: engineering@finbourne.com
@@ -18,7 +18,7 @@ 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=6ZZDoPZlMrGoLhRgeYEHC2LGmY3QjW4vejO85g7ZbKE,28
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=N0ZhQukuYQw4m0npioP__Fb1VmyqCW2CDlFa5u39Yc0,5583
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=gWR7SE1Cvdm-tS8qJNJoHP37Wbl5TH0vegY_BT24paI,2760
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.410.dist-info/METADATA,sha256=4_CQt197KWm5XsiE5uJk3NYoARhMfgwinTJCJNz2ELg,14822
383
- dve_lumipy_testing-1.0.410.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
384
- dve_lumipy_testing-1.0.410.dist-info/entry_points.txt,sha256=L7hRlqwmvzHMwaOQzygKLK-gx4k4e1q4Qz5m0DGihW8,46
385
- dve_lumipy_testing-1.0.410.dist-info/top_level.txt,sha256=DVww8LaQM3Xm0WOgo4JE0epePgCM1xGWWWxh7wuv-CY,7
386
- dve_lumipy_testing-1.0.410.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1 +1 @@
1
- max_version_str = '1.18.288'
1
+ max_version_str = '1.18.291'
@@ -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