File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 3434from pyiceberg .transforms import IdentityTransform
3535from pyiceberg .typedef import Properties
3636from pyiceberg .types import LongType , NestedField
37- from pyiceberg .utils .config import Config
3837
3938
4039def test_missing_uri (mocker : MockFixture , empty_home_dir_path : str ) -> None :
4140 # mock to prevent parsing ~/.pyiceberg.yaml or {PYICEBERG_HOME}/.pyiceberg.yaml
4241 mocker .patch .dict (os .environ , values = {"HOME" : empty_home_dir_path , "PYICEBERG_HOME" : empty_home_dir_path })
43- mocker .patch ("pyiceberg.catalog._ENV_CONFIG" , return_value = Config ())
4442
4543 runner = CliRunner ()
4644 result = runner .invoke (run , ["list" ])
4745
4846 assert result .exit_code == 1
49- assert result . output == "Could not initialize catalog with the following properties: {} \n "
47+ assert "URI missing" in result . output
5048
5149
5250def test_hive_catalog_missing_uri_shows_helpful_error (mocker : MockFixture ) -> None :
You can’t perform that action at this time.
0 commit comments