Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GRID LRT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ASTRON SDC
GRID LRT
Commits
67ff3099
Commit
67ff3099
authored
5 years ago
by
Alexandar Mechev
Browse files
Options
Downloads
Patches
Plain Diff
mocks changed properly?
parent
4ef4d615
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GRID_LRT/tests/test_Storage.py
+2
-2
2 additions, 2 deletions
GRID_LRT/tests/test_Storage.py
GRID_LRT/tests/test_srmlist.py
+1
-1
1 addition, 1 deletion
GRID_LRT/tests/test_srmlist.py
with
3 additions
and
3 deletions
GRID_LRT/tests/test_Storage.py
+
2
−
2
View file @
67ff3099
...
...
@@ -40,7 +40,7 @@ class GSIFileTest(unittest.TestCase):
def
tearDown
(
self
):
pass
@mock.patch
(
'
subprocess.
Popen
'
,
autospec
=
True
)
@mock.patch
(
'
GRID_LRT.Safe
Popen
'
,
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.Safe
Popen
'
,
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
...
...
This diff is collapsed.
Click to expand it.
GRID_LRT/tests/test_srmlist.py
+
1
−
1
View file @
67ff3099
...
...
@@ -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.Safe
Popen
'
,
autospec
=
True
)
def
test_count_files
(
self
,
mock_subproc_popen
):
from
GRID_LRT.auth
import
grid_credentials
process_mock
=
mock
.
Mock
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment