Skip to content

Commit

Permalink
🔧 ✅ fix test_create_handler_venv_win32_none_stderror_result PopenMock
Browse files Browse the repository at this point in the history
  • Loading branch information
storkwrangler committed Oct 22, 2024
1 parent 9ddce25 commit c9a7b79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2634,11 +2634,10 @@ def test_wsgi_query_string_with_encodechars(self):
expected = "query=Jane%26John&otherquery=B&test=hello%2Bm.te%26how%26are%26you"
self.assertEqual(request["QUERY_STRING"], expected)

@mock.patch()
@mock.patch(subprocess.Popen)
@mock.patch("subprocess.Popen")
def test_create_handler_venv_win32_none_stderror_result(self, popen_mock):
class PopenMock:
return_code = 999
returncode = 999

@classmethod
def communicate(cls):
Expand Down

0 comments on commit c9a7b79

Please sign in to comment.