Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eb5e58b

Browse filesBrowse files
committed
Fix test
1 parent aa06c8c commit eb5e58b
Copy full SHA for eb5e58b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎tests/test_is_interactive.py

Copy file name to clipboardExpand all lines: tests/test_is_interactive.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
import pytest
32
import builtins
43
from unittest import mock
54
from dotenv.main import find_dotenv
@@ -179,7 +178,6 @@ def test_is_interactive_ps1_and_ps2_both_exist(self, tmp_path, monkeypatch):
179178
def test_is_interactive_main_module_with_file_attribute_none(self, tmp_path, monkeypatch):
180179
"""Test _is_interactive when __main__ has __file__ attribute set to None."""
181180
self._remove_ps_attributes(monkeypatch)
182-
dotenv_path = self._create_dotenv_file(tmp_path)
183181

184182
# Mock __main__ module with __file__ = None
185183
mock_main = mock.MagicMock()
@@ -190,7 +188,7 @@ def test_is_interactive_main_module_with_file_attribute_none(self, tmp_path, mon
190188
# Mock sys.gettrace to ensure debugger detection returns False
191189
monkeypatch.setattr("sys.gettrace", lambda: None)
192190

193-
self._setup_subdir_and_chdir(tmp_path, monkeypatch)
191+
monkeypatch.chdir(tmp_path)
194192

195193
# __file__ = None should still be considered non-interactive
196194
# and with no debugger, find_dotenv should not search from cwd

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.