Skip to content

Commit bd3051a

Browse files
committed
Fix broken tests.
1 parent 8636ee1 commit bd3051a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_cli_commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_new_entry_command_success(runner, test_site_module, monkeypatch):
127127
"""Tests new_entry command with valid parameters"""
128128
tmp_path, module_site = test_site_module
129129
monkeypatch.chdir(tmp_path)
130-
monkeypatch.setattr("render_engine_cli.cli.os.getenv", lambda *_: {})
130+
monkeypatch.setattr("render_engine_cli.utils.getenv", lambda *_: {})
131131

132132
# Create content directory
133133
content_dir = tmp_path / "content"
@@ -172,7 +172,7 @@ def test_new_entry_command_with_args(runner, test_site_module, monkeypatch):
172172
"""Tests new_entry command with --args parameter"""
173173
tmp_path, module_site = test_site_module
174174
monkeypatch.chdir(tmp_path)
175-
monkeypatch.setattr("render_engine_cli.cli.os.getenv", lambda *_: {})
175+
monkeypatch.setattr("render_engine_cli.utils.getenv", lambda *_: {})
176176

177177
content_dir = tmp_path / "content"
178178
content_dir.mkdir()
@@ -268,7 +268,7 @@ def mock_create_collection_entry(**kwargs):
268268

269269
tmp_path, module_site = test_site_module
270270
monkeypatch.chdir(tmp_path)
271-
monkeypatch.setattr("render_engine_cli.cli.os.getenv", lambda *_: {})
271+
monkeypatch.setattr("render_engine_cli.utils.getenv", lambda *_: {})
272272
monkeypatch.setattr("render_engine_cli.cli.create_collection_entry", mock_create_collection_entry)
273273
content_dir = tmp_path / "content"
274274
content_dir.mkdir()

0 commit comments

Comments
 (0)