@@ -413,26 +413,28 @@ def test_update_filtered_policies(self):
413413 def test_create_table_false (self ):
414414 """Test that tables are not created when create_table=False"""
415415 from sqlalchemy import inspect
416-
416+
417417 engine = create_engine ("sqlite://" )
418-
418+
419419 # Create adapter with create_table=False
420420 adapter = Adapter (engine , create_table = False )
421-
421+
422422 # Verify that the table was NOT created
423423 inspector = inspect (engine )
424424 tables = inspector .get_table_names ()
425- self .assertEqual (len (tables ), 0 , "No tables should be created when create_table=False" )
425+ self .assertEqual (
426+ len (tables ), 0 , "No tables should be created when create_table=False"
427+ )
426428
427429 def test_create_table_true_default (self ):
428430 """Test that tables are created by default (backward compatibility)"""
429431 from sqlalchemy import inspect
430-
432+
431433 engine = create_engine ("sqlite://" )
432-
434+
433435 # Create adapter without specifying create_table (should default to True)
434436 adapter = Adapter (engine )
435-
437+
436438 # Verify that the table WAS created
437439 inspector = inspect (engine )
438440 tables = inspector .get_table_names ()
@@ -441,22 +443,24 @@ def test_create_table_true_default(self):
441443 def test_create_table_custom_table_name (self ):
442444 """Test that custom table name is not created when create_table=False"""
443445 from sqlalchemy import inspect
444-
446+
445447 engine = create_engine ("sqlite://" )
446448 table_name = "my_custom_table"
447-
449+
448450 # Create adapter with custom table name and create_table=False
449451 adapter = Adapter (engine , table_name = table_name , create_table = False )
450-
452+
451453 # Verify that the table was NOT created
452454 inspector = inspect (engine )
453455 tables = inspector .get_table_names ()
454- self .assertEqual (len (tables ), 0 , "No tables should be created when create_table=False" )
456+ self .assertEqual (
457+ len (tables ), 0 , "No tables should be created when create_table=False"
458+ )
455459
456460 def test_create_table_custom_db_class (self ):
457461 """Test that custom db_class table is not created when create_table=False"""
458462 from sqlalchemy import inspect
459-
463+
460464 class CustomRule (Base ):
461465 __tablename__ = "custom_rule_table"
462466
@@ -470,11 +474,13 @@ class CustomRule(Base):
470474 v5 = Column (String (255 ))
471475
472476 engine = create_engine ("sqlite://" )
473-
477+
474478 # Create adapter with custom db_class and create_table=False
475479 adapter = Adapter (engine , db_class = CustomRule , create_table = False )
476-
480+
477481 # Verify that the table was NOT created
478482 inspector = inspect (engine )
479483 tables = inspector .get_table_names ()
480- self .assertEqual (len (tables ), 0 , "No tables should be created when create_table=False" )
484+ self .assertEqual (
485+ len (tables ), 0 , "No tables should be created when create_table=False"
486+ )
0 commit comments