Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Factory:Rings:1-MinimalX
python-vncdotool
fix-mocking.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-mocking.patch of Package python-vncdotool
Index: vncdotool-1.0.0/tests/unit/test_command.py =================================================================== --- vncdotool-1.0.0.orig/tests/unit/test_command.py +++ vncdotool-1.0.0/tests/unit/test_command.py @@ -1,5 +1,6 @@ from vncdotool import command +import os.path import socket import unittest import mock @@ -207,8 +208,8 @@ class TestParseServer(object): assert port == 1111 def test_unix_socket(self): - command.os.path.exists.return_value = True - family, host, port = command.parse_server('/some/path/unix.skt') + with mock.patch.object(os.path, 'exists', return_value=True): + family, host, port = command.parse_server('/some/path/unix.skt') assert family == socket.AF_UNIX assert host == '/some/path/unix.skt' assert port == 5900
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor