Skip to content

Commit 044714b

Browse files
committed
Update tests
1 parent 1f9b8a5 commit 044714b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_list_tables.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ def test_list_tables(token, client, ParentPart):
1313
assert f"""{ProcessScanData.__name__}.{
1414
ProcessScanData.ProcessScanDataPart.__name__}""" == REST_tables['part_tables'][0]
1515

16-
def test_invalid_schema_list_table(token, client):
16+
def test_invalid_schema_list_table(token, client, schema_main):
1717
# Test invalid schema
1818
response: Response = client.post(
1919
'/list_tables',
2020
headers=dict(Authorization=f'Bearer {token}'),
2121
json=dict(schemaName='invalid_schema')
2222
)
2323

24-
assert('Database `invalid_schema` has not yet been declared. Set argument create_schema=True to create it.' in response.get_data(as_text=True))
24+
assert(response.status_code != 200)
25+
assert('invalid_schema' not in dj.list_schemas())

0 commit comments

Comments
 (0)