Skip to content

Commit 9f0040e

Browse files
committed
Fix test as now throws exception if view does not exist
1 parent 6fc3323 commit 9f0040e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/integration/exasol/test_get_metadata_functions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ def test_get_view_definition(self, engine_name):
200200
def test_get_view_definition_view_name_none(self, engine_name):
201201
with self.engine_map[engine_name].begin() as c:
202202
dialect = inspect(c).dialect
203-
view_definition = dialect.get_view_definition(
204-
connection=c,
205-
schema=self.schema,
206-
view_name=None,
207-
)
208-
assert view_definition is None
203+
with pytest.raises(NoSuchTableError):
204+
dialect.get_view_definition(
205+
connection=c,
206+
schema=self.schema,
207+
view_name=None,
208+
)
209209

210210
@pytest.mark.parametrize(
211211
"engine_name",

0 commit comments

Comments
 (0)