@@ -155,25 +155,24 @@ def test_config_from_file(self):
155
155
156
156
config_path = self .path ("config" )
157
157
with tiledb .FileIO (self .vfs , config_path , "wb" ) as fh :
158
- pass
159
- # fh.write("sm.tile_cache_size 100")
160
- # config = tiledb.Config.load(config_path)
161
- # self.assertEqual(config["sm.tile_cache_size"], "100")
162
-
163
- # def test_ctx_config_from_file(self):
164
- # config_path = self.path("config")
165
- # vfs = tiledb.VFS()
166
- # with tiledb.FileIO(vfs, config_path, "wb") as fh:
167
- # fh.write("sm.tile_cache_size 100")
168
- # ctx = tiledb.Ctx(config=tiledb.Config.load(config_path))
169
- # config = ctx.config()
170
- # self.assertEqual(config["sm.tile_cache_size"], "100")
171
-
172
- # def test_ctx_config_dict(self):
173
- # ctx = tiledb.Ctx(config={"sm.tile_cache_size": "100"})
174
- # config = ctx.config()
175
- # assert issubclass(type(config), tiledb.libtiledb.Config)
176
- # self.assertEqual(config["sm.tile_cache_size"], "100")
158
+ fh .write ("sm.tile_cache_size 100" )
159
+ config = tiledb .Config .load (config_path )
160
+ self .assertEqual (config ["sm.tile_cache_size" ], "100" )
161
+
162
+ def test_ctx_config_from_file (self ):
163
+ config_path = self .path ("config" )
164
+ vfs = tiledb .VFS ()
165
+ with tiledb .FileIO (vfs , config_path , "wb" ) as fh :
166
+ fh .write ("sm.tile_cache_size 100" )
167
+ ctx = tiledb .Ctx (config = tiledb .Config .load (config_path ))
168
+ config = ctx .config ()
169
+ self .assertEqual (config ["sm.tile_cache_size" ], "100" )
170
+
171
+ def test_ctx_config_dict (self ):
172
+ ctx = tiledb .Ctx (config = {"sm.tile_cache_size" : "100" })
173
+ config = ctx .config ()
174
+ assert issubclass (type (config ), tiledb .libtiledb .Config )
175
+ self .assertEqual (config ["sm.tile_cache_size" ], "100" )
177
176
178
177
179
178
class GroupTestCase (DiskTestCase ):
0 commit comments