@@ -41,13 +41,8 @@ def test_stage_finalize(arctic_library):
41
41
pd .testing .assert_frame_equal (result , expected )
42
42
43
43
44
- def create_lib_dynamic (ac , lib_name ):
45
- lib_opts = adb .LibraryOptions (dynamic_schema = True )
46
- return ac .get_library (lib_name , create_if_missing = True , library_options = lib_opts )
47
-
48
-
49
- def test_stage_finalize_dynamic (arctic_client , lib_name ):
50
- arctic_library = create_lib_dynamic (arctic_client , lib_name )
44
+ def test_stage_finalize_dynamic (arctic_library_dynamic ):
45
+ arctic_library = arctic_library_dynamic
51
46
symbol = "AAPL"
52
47
sort_cols = ["timestamp" , "col1" ]
53
48
@@ -79,7 +74,6 @@ def test_stage_finalize_dynamic(arctic_client, lib_name):
79
74
80
75
expected = pd .concat ([df1 , df2 ]).sort_values (sort_cols )
81
76
pd .testing .assert_frame_equal (result , expected )
82
- arctic_client .delete_library (lib_name )
83
77
84
78
85
79
def random_strings (count , max_length ):
@@ -124,8 +118,8 @@ def test_stage_finalize_strings(arctic_library):
124
118
pd .testing .assert_frame_equal (result , expected )
125
119
126
120
127
- def test_stage_finalize_strings_dynamic (arctic_client , lib_name ):
128
- arctic_library = create_lib_dynamic ( arctic_client , lib_name )
121
+ def test_stage_finalize_strings_dynamic (arctic_library_dynamic ):
122
+ arctic_library = arctic_library_dynamic
129
123
symbol = "AAPL"
130
124
sort_cols = ["timestamp" , "col1" ]
131
125
0 commit comments