Explorar o código

[metastore] tests should be aware of database fallback to 'default'

Abraham Elmahrek %!s(int64=11) %!d(string=hai) anos
pai
achega
7bd57f0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      apps/metastore/src/metastore/tests.py

+ 2 - 1
apps/metastore/src/metastore/tests.py

@@ -78,8 +78,9 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
     response = self.client.get("/metastore/tables/default")
     assert_true("test" in response.context["tables"])
 
+    # Should default to "default" database
     response = self.client.get("/metastore/tables/not_there")
-    assert_false("test" in response.context["tables"])
+    assert_true("test" in response.context["tables"])
 
     # And have detail
     response = self.client.get("/metastore/table/default/test")