Fix: repo id use tests
This commit is contained in:
@@ -58,13 +58,29 @@ def test_describe_schema(location, repository):
|
||||
assert schema.id == "example-schema"
|
||||
assert schema.repo_id == str(location)
|
||||
assert schema.value == str(location / "schema")
|
||||
assert schema.tables == ["username", "recovery", "salary"]
|
||||
assert schema.tables == [
|
||||
"example-schema-username",
|
||||
"example-schema-recovery",
|
||||
"example-schema-salary",
|
||||
]
|
||||
|
||||
|
||||
def test_list_tables_schema(repository):
|
||||
assert repository.schema("example-schema").tables == ["username", "recovery", "salary"]
|
||||
assert repository.tables("example-schema") == ["username", "recovery", "salary"]
|
||||
assert repository.tables() == ["username", "recovery", "salary"]
|
||||
assert repository.schema("example-schema").tables == [
|
||||
"example-schema-username",
|
||||
"example-schema-recovery",
|
||||
"example-schema-salary",
|
||||
]
|
||||
assert repository.tables("example-schema") == [
|
||||
"example-schema-username",
|
||||
"example-schema-recovery",
|
||||
"example-schema-salary",
|
||||
]
|
||||
assert repository.tables() == [
|
||||
"example-schema-username",
|
||||
"example-schema-recovery",
|
||||
"example-schema-salary",
|
||||
]
|
||||
|
||||
|
||||
def test_describe_table(location, repository):
|
||||
|
||||
Reference in New Issue
Block a user