7
7
from syrupy .matchers import path_type
8
8
9
9
schema = schemathesis .from_path ('../user_account_operations.yaml' , base_url = BASE_URL , validate_schema = True )
10
- base_operations_deprecated_schema = schemathesis .from_path ('../base_operations_deprecated.yaml' , base_url = BASE_URL , validate_schema = True )
11
10
base_operations_schema = schemathesis .from_path ('../base_operations.yaml' , base_url = BASE_URL , validate_schema = True )
12
11
file_operations = schemathesis .from_path ('../file_operations.yaml' , base_url = BASE_URL , validate_schema = True )
13
12
@@ -329,7 +328,7 @@ def test_createBase(workspace_id: int, account_token: Secret, snapshot_json: Sna
329
328
330
329
assert snapshot_json (matcher = matcher ) == response .json ()
331
330
332
- @pytest .mark .parametrize ('operation_id' , ['createTable' , 'createTableDeprecated' ])
331
+ @pytest .mark .parametrize ('operation_id' , ['createTable' ])
333
332
def test_createTable (base : Base , snapshot_json : SnapshotAssertion , operation_id : str ):
334
333
table_name = f'test_{ operation_id } '
335
334
@@ -356,7 +355,7 @@ def test_createTable(base: Base, snapshot_json: SnapshotAssertion, operation_id:
356
355
357
356
assert snapshot_json (matcher = matcher ) == response .json ()
358
357
359
- @pytest .mark .parametrize ('operation_id' , ['appendRowsDeprecated' , ' appendRows' ])
358
+ @pytest .mark .parametrize ('operation_id' , ['appendRows' ])
360
359
def test_appendRows (base : Base , snapshot_json : SnapshotAssertion , operation_id : str ):
361
360
table_name = f'test_{ operation_id } '
362
361
@@ -388,7 +387,7 @@ def test_appendRows(base: Base, snapshot_json: SnapshotAssertion, operation_id:
388
387
389
388
assert snapshot_json (matcher = matcher ) == data
390
389
391
- @pytest .mark .parametrize ('operation_id' , ['getRowDeprecated' , ' getRow' ])
390
+ @pytest .mark .parametrize ('operation_id' , ['getRow' ])
392
391
def test_getRow (base : Base , snapshot_json , operation_id : str ):
393
392
table_name = f'test_{ operation_id } '
394
393
@@ -439,7 +438,7 @@ def test_getRow(base: Base, snapshot_json, operation_id: str):
439
438
440
439
assert snapshot_json (matcher = matcher ) == response .json ()
441
440
442
- @pytest .mark .parametrize ('operation_id' , ['listRowsDeprecated' , ' listRows' ])
441
+ @pytest .mark .parametrize ('operation_id' , ['listRows' ])
443
442
def test_listRows (base : Base , snapshot_json , operation_id : str ):
444
443
table_name = f'test_{ operation_id } '
445
444
@@ -474,7 +473,7 @@ def test_listRows(base: Base, snapshot_json, operation_id: str):
474
473
# Verify that response matches snapshot
475
474
assert snapshot_json (matcher = matcher ) == response .json ()
476
475
477
- @pytest .mark .parametrize ('operation_id' , ['listRowsDeprecated' , ' listRows' ])
476
+ @pytest .mark .parametrize ('operation_id' , ['listRows' ])
478
477
def test_listRows_links (base : Base , snapshot_json : SnapshotAssertion , operation_id : str ):
479
478
table_name_1 = f'test_{ operation_id } _links-1'
480
479
columns_1 = [
@@ -512,7 +511,7 @@ def test_listRows_links(base: Base, snapshot_json: SnapshotAssertion, operation
512
511
},
513
512
}
514
513
headers = {'Authorization' : f'Bearer { base .token } ' }
515
- case : Case = base_operations_deprecated_schema .get_operation_by_id ('insertColumnDeprecated ' ) \
514
+ case : Case = base_operations_schema .get_operation_by_id ('insertColumn ' ) \
516
515
.make_case (path_parameters = path_parameters , body = body , headers = headers )
517
516
response = case .call_and_validate ()
518
517
@@ -527,7 +526,7 @@ def test_listRows_links(base: Base, snapshot_json: SnapshotAssertion, operation
527
526
'row_id' : table_2_row_id ,
528
527
'other_rows_ids' : table_1_row_ids ,
529
528
}
530
- case : Case = base_operations_deprecated_schema .get_operation_by_id ('createRowLinksDeprecated' ) \
529
+ case : Case = base_operations_schema .get_operation_by_id ('createRowLinksDeprecated' ) \
531
530
.make_case (path_parameters = path_parameters , body = body , headers = headers )
532
531
response = case .call_and_validate ()
533
532
@@ -614,7 +613,7 @@ def test_listRows_links(base: Base, snapshot_json: SnapshotAssertion, operation
614
613
# Insert link-formula columns to table 2
615
614
for column in link_formula_columns :
616
615
path_parameters = {'base_uuid' : base .uuid }
617
- case : Case = base_operations_deprecated_schema .get_operation_by_id ('insertColumnDeprecated ' ) \
616
+ case : Case = base_operations_schema .get_operation_by_id ('insertColumn ' ) \
618
617
.make_case (path_parameters = path_parameters , body = column , headers = headers )
619
618
response = case .call_and_validate ()
620
619
assert response .status_code == 200
@@ -647,7 +646,7 @@ def test_listRows_links(base: Base, snapshot_json: SnapshotAssertion, operation
647
646
# Verify that response matches snapshot
648
647
assert snapshot_json (matcher = matcher ) == response .json ()
649
648
650
- @pytest .mark .parametrize ('operation_id' , ['listRowsDeprecated' , ' listRows' ])
649
+ @pytest .mark .parametrize ('operation_id' , ['listRows' ])
651
650
def test_listRows_files_images (base : Base , snapshot_json : SnapshotAssertion , operation_id : str ):
652
651
table_name = f'test_{ operation_id } _files_images'
653
652
columns = [
@@ -728,7 +727,7 @@ def test_listRows_files_images(base: Base, snapshot_json: SnapshotAssertion, op
728
727
)
729
728
assert snapshot_json (matcher = matcher ) == response .json ()
730
729
731
- @pytest .mark .parametrize ('operation_id' , ['querySQLDeprecated' , ' querySQL' ])
730
+ @pytest .mark .parametrize ('operation_id' , ['querySQL' ])
732
731
def test_querySQL (base : Base , snapshot_json : SnapshotAssertion , operation_id : str ):
733
732
table_name = f'test_{ operation_id } '
734
733
@@ -765,7 +764,7 @@ def create_table(base: Base, table_name: str, columns: list[dict]):
765
764
body = {'table_name' : table_name , 'columns' : columns }
766
765
headers = {'Authorization' : f'Bearer { base .token } ' }
767
766
768
- operation = base_operations_deprecated_schema .get_operation_by_id ('createTableDeprecated ' )
767
+ operation = base_operations_schema .get_operation_by_id ('createTable ' )
769
768
case : Case = operation .make_case (path_parameters = path_parameters , body = body , headers = headers )
770
769
771
770
response = case .call_and_validate ()
@@ -777,7 +776,7 @@ def add_row(base: Base, table_name: str, row: dict) -> str:
777
776
body = {'table_name' : table_name , 'row' : row }
778
777
headers = {'Authorization' : f'Bearer { base .token } ' }
779
778
780
- operation = base_operations_deprecated_schema .get_operation_by_id ('addRowDeprecated ' )
779
+ operation = base_operations_schema .get_operation_by_id ('addRow ' )
781
780
case : Case = operation .make_case (path_parameters = path_parameters , body = body , headers = headers )
782
781
response = case .call_and_validate ()
783
782
0 commit comments