dasl-client 1.0.21__py3-none-any.whl → 1.0.22__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.

Potentially problematic release.


This version of dasl-client might be problematic. Click here for more details.

@@ -1311,6 +1311,7 @@ class DataSource(BaseModel):
1311
1311
  schedule: Optional[Schedule] = None
1312
1312
  custom: Optional["DataSource.CustomNotebook"] = None
1313
1313
  use_preset: Optional[str] = None
1314
+ use_preset_version: Optional[int] = None
1314
1315
  autoloader: Optional["DataSource.Autoloader"] = None
1315
1316
  bronze: Optional[BronzeSpec] = None
1316
1317
  silver: Optional[SilverSpec] = None
@@ -1326,6 +1327,7 @@ class DataSource(BaseModel):
1326
1327
  schedule=Schedule.from_api_obj(obj.spec.schedule),
1327
1328
  custom=DataSource.CustomNotebook.from_api_obj(obj.spec.custom),
1328
1329
  use_preset=obj.spec.use_preset,
1330
+ use_preset_version=obj.spec.use_preset_version,
1329
1331
  autoloader=DataSource.Autoloader.from_api_obj(obj.spec.autoloader),
1330
1332
  bronze=BronzeSpec.from_api_obj(obj.spec.bronze),
1331
1333
  silver=SilverSpec.from_api_obj(obj.spec.silver),
@@ -1345,6 +1347,7 @@ class DataSource(BaseModel):
1345
1347
  schedule=Helpers.maybe(to_api_obj, self.schedule),
1346
1348
  custom=Helpers.maybe(to_api_obj, self.custom),
1347
1349
  use_preset=self.use_preset,
1350
+ use_preset_version=self.use_preset_version,
1348
1351
  autoloader=Helpers.maybe(to_api_obj, self.autoloader),
1349
1352
  bronze=Helpers.maybe(to_api_obj, self.bronze),
1350
1353
  silver=Helpers.maybe(to_api_obj, self.silver),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dasl_client
3
- Version: 1.0.21
3
+ Version: 1.0.22
4
4
  Summary: The DASL client library used for interacting with the DASL workspace
5
5
  Home-page: https://github.com/antimatter/asl
6
6
  Author: Antimatter Team
@@ -16,7 +16,7 @@ dasl_client/preset_development/stage.py,sha256=2FPOZvb_bCVpjrY5TsYB05BD4KYbrhgfA
16
16
  dasl_client/types/__init__.py,sha256=GsXC3eWuv21VTLPLPH9pzM95JByaKnKrPjJkh2rlZfQ,170
17
17
  dasl_client/types/admin_config.py,sha256=Kmx3Kuai9_LWMeO2NpWasRUgLihYSEXGtuYVfG0FkjU,2200
18
18
  dasl_client/types/content.py,sha256=HegSq2i7w78CH4kq4XwDyeaB8LuZWWwFZkg0tYTY8d0,7349
19
- dasl_client/types/datasource.py,sha256=wTZQU8n9Gqbao5KjqajFn90iOHTTEUOC0vRxZaDPo4E,52683
19
+ dasl_client/types/datasource.py,sha256=1r55rYHeN8bmTU190dWcpEWPJ64pJoAwOJy_pVcMP8o,52848
20
20
  dasl_client/types/dbui.py,sha256=k2WXNjfrEjXa-5iBlZ17pvFAs_jgbd-ir5NJl5sXvpA,16097
21
21
  dasl_client/types/helpers.py,sha256=gLGTvrssAKrdkQT9h80twEosld2egwhvj-zAudxWFPs,109
22
22
  dasl_client/types/rule.py,sha256=BqhWhT8Eh95UXNytd0PxVcjqYuWQcdN1tfKjUB4Tk74,25781
@@ -25,12 +25,12 @@ dasl_client/types/workspace_config.py,sha256=RThg_THS_4leITWdzBPTWdR2ytq5Uk36m6n
25
25
  test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  test/conftest.py,sha256=ZfNULJxVQ609GHxw9UsreTcbQMl3gbcTP_DKT1oySwQ,440
27
27
  test/constants.py,sha256=ed3xiemWDJVBlHDwn-iQToCbcaXD3AN-5r8HkURCqBs,438
28
- test/test_api_changes.py,sha256=-SjOG5wKPD_cpTukkfNkALebph06_yxBYsqxtQVnedc,3466
29
- test/test_api_surface.py,sha256=jJY-KkOS4y3xBIr6HJKNTYgxmF_dRFKCTrC8XMGePN8,10844
28
+ test/test_api_changes.py,sha256=RzLauhCkwLmf_gK5yZZ7R7TI9803XCGr-YCyv_jSc94,3827
29
+ test/test_api_surface.py,sha256=nOxoxg9mVSpHLtEDiK98qbAarXsUzC3zTIUZ4e4KLAI,10940
30
30
  test/test_databricks_secret_auth.py,sha256=P1seBBHOLcCzJPLdRZlJZxeG62GUFKFbjsY8c7gTT_8,3613
31
31
  test/test_marshaling.py,sha256=DLy5C1lBAon9oD55tzrh98cbcii6OmpTPP4CBm4cvu0,37816
32
- dasl_client-1.0.21.dist-info/LICENSE,sha256=M35UepUPyKmFkvENlkweeaMElheQqNoM5Emh8ADO-rs,4
33
- dasl_client-1.0.21.dist-info/METADATA,sha256=ihdmy-ndqd-p7fz05Es2ZG8QGWZlfQO3t-hyR7vQy00,741
34
- dasl_client-1.0.21.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
35
- dasl_client-1.0.21.dist-info/top_level.txt,sha256=943P5S_qILHKZYxAvxPUeqOzM2yV18d5SBVKxzPw2OE,17
36
- dasl_client-1.0.21.dist-info/RECORD,,
32
+ dasl_client-1.0.22.dist-info/LICENSE,sha256=M35UepUPyKmFkvENlkweeaMElheQqNoM5Emh8ADO-rs,4
33
+ dasl_client-1.0.22.dist-info/METADATA,sha256=pmJrFcebmhZ5GXiENQrjQoR_aVYmLIoZNBO5xItlaDs,741
34
+ dasl_client-1.0.22.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
35
+ dasl_client-1.0.22.dist-info/top_level.txt,sha256=943P5S_qILHKZYxAvxPUeqOzM2yV18d5SBVKxzPw2OE,17
36
+ dasl_client-1.0.22.dist-info/RECORD,,
test/test_api_changes.py CHANGED
@@ -123,3 +123,15 @@ def test_api_model_for_changes(tpe):
123
123
  with open(f"test/expected_api_models/{checked_dasl_types[tpe]}", "r") as f:
124
124
  expected_val = f.read()
125
125
  assert dasl_model_to_string(tpe) == expected_val
126
+
127
+
128
+ @pytest.mark.update
129
+ @pytest.mark.parametrize(
130
+ "tpe",
131
+ checked_dasl_types.keys(),
132
+ ids=[f"updating {tpe.__name__} model" for tpe in checked_dasl_types.keys()],
133
+ )
134
+ def test_apply_api_model_changes(tpe):
135
+ model_ser = dasl_model_to_string(tpe)
136
+ with open(f"test/expected_api_models/{checked_dasl_types[tpe]}", "w") as f:
137
+ f.write(model_ser)
test/test_api_surface.py CHANGED
@@ -172,7 +172,7 @@ def test_minimal_rule(api_client):
172
172
  stream=Rule.Input.Stream(
173
173
  tables=[
174
174
  Rule.Input.Stream.Table(
175
- name="test",
175
+ name="automated_test_cases.pylib.test",
176
176
  ),
177
177
  ],
178
178
  ),
@@ -223,7 +223,7 @@ def test_minimal_rule(api_client):
223
223
  base_rule_2.metadata.resource_status = got_2.metadata.resource_status
224
224
  assert api_client.get_rule("test_1") == base_rule_2
225
225
 
226
- base_rule_2.input.stream.tables[0].name = "test_1"
226
+ base_rule_2.input.stream.tables[0].name = "databricks_dev.antimatter_meta.test_ip_summaries"
227
227
  api_client.replace_rule("test_1", base_rule_2)
228
228
 
229
229
  got_2 = api_client.get_rule("test_1")
@@ -253,7 +253,7 @@ def test_list_pagination(api_client):
253
253
  stream=Rule.Input.Stream(
254
254
  tables=[
255
255
  Rule.Input.Stream.Table(
256
- name="test",
256
+ name="automated_test_cases.pylib.test",
257
257
  ),
258
258
  ],
259
259
  ),