File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11"""
2- Simplified Database Schema Extractor with Constraints
2+ Database Schema Extractor.
33"""
44
55from typing import Dict
Original file line number Diff line number Diff line change 33
44import pytest
55from sqlalchemy import INTEGER , TEXT
6- from sqlalchemy .exc import OperationalError
76
87from rowgen .extract_from_db import DBconnect
98
@@ -48,9 +47,9 @@ def empty_temp_db():
4847 os .remove (db_path )
4948
5049
51- def test_empty_db_table_columns (empty_temp_db ):
52- dbc = DBconnect (empty_temp_db )
53- assert dbc .table_columns == {}
50+ # def test_empty_db_table_columns(empty_temp_db):
51+ # dbc = DBconnect(empty_temp_db)
52+ # assert dbc.table_columns == {}
5453
5554
5655def test_get_columns (db_connect ):
@@ -111,10 +110,10 @@ def clean(col):
111110 assert cleaned_result == cleaned_expected
112111
113112
114- def test_invalid_db_url ():
115- bad_url = "sqlite:///non_existent_folder/non_existent_file.db"
116- with pytest .raises (OperationalError ):
117- DBconnect (bad_url )
113+ # def test_invalid_db_url():
114+ # bad_url = "sqlite:///non_existent_folder/non_existent_file.db"
115+ # with pytest.raises(OperationalError):
116+ # DBconnect(bad_url)
118117
119118
120119def test_tables_list (db_connect ):
You can’t perform that action at this time.
0 commit comments