Skip to content

Commit a049f89

Browse files
committed
test_missing_uri test to success !
1 parent 23815d8 commit a049f89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/cli/test_console.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,17 @@
3434
from pyiceberg.transforms import IdentityTransform
3535
from pyiceberg.typedef import Properties
3636
from pyiceberg.types import LongType, NestedField
37-
from pyiceberg.utils.config import Config
3837

3938

4039
def 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

5250
def test_hive_catalog_missing_uri_shows_helpful_error(mocker: MockFixture) -> None:

0 commit comments

Comments
 (0)