Skip to content
Snippets Groups Projects
Commit 67ff3099 authored by Alexandar Mechev's avatar Alexandar Mechev
Browse files

mocks changed properly?

parent 4ef4d615
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class GSIFileTest(unittest.TestCase):
def tearDown(self):
pass
@mock.patch('subprocess.Popen', autospec=True)
@mock.patch('GRID_LRT.SafePopen', autospec=True)
def test_1(self, mock_subproc_popen):
''' Tests creating folders on the FS in the appropriate locations
'''
......@@ -55,7 +55,7 @@ class GSIFileTest(unittest.TestCase):
def test_autobuild(self):
pass
@mock.patch('subprocess.Popen', autospec=True)
@mock.patch('GRID_LRT.SafePopen', autospec=True)
def test_parent_dir(self, mock_subproc_popen):
"""test looking at parent directory when target if a file"""
from GRID_LRT.auth import grid_credentials
......
......@@ -183,7 +183,7 @@ class SrmlistTest(unittest.TestCase):
self.assertTrue('https://' in http_links[0])
self.assertTrue(len(http_links[0])==186)
@mock.patch('subprocess.Popen', autospec=True)
@mock.patch('GRID_LRT.SafePopen', autospec=True)
def test_count_files(self, mock_subproc_popen):
from GRID_LRT.auth import grid_credentials
process_mock = mock.Mock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment