Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
df1edfeb
Commit
df1edfeb
authored
10 months ago
by
Sam Kagan
Browse files
Options
Downloads
Patches
Plain Diff
Removed test/__init__.py, renamed fixture for casa_envoy
parent
a40f6c38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1706
merge 2.8.4 to main
,
!1657
Got EVLA CMS restores working via casa_envoy, using casa_restorepipescript.py when it exists
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/cli/executables/pexable/casa_envoy/test/__init__.py
+0
-17
0 additions, 17 deletions
apps/cli/executables/pexable/casa_envoy/test/__init__.py
apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
+5
-5
5 additions, 5 deletions
...li/executables/pexable/casa_envoy/test/test_foundation.py
with
5 additions
and
22 deletions
apps/cli/executables/pexable/casa_envoy/test/__init__.py
deleted
100644 → 0
+
0
−
17
View file @
a40f6c38
# Copyright (C) 2023 Associated Universities, Inc. Washington DC, USA.
#
# This file is part of NRAO Workspaces.
#
# Workspaces is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Workspaces is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Workspaces. If not, see <https://www.gnu.org/licenses/>.
#
This diff is collapsed.
Click to expand it.
apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
+
5
−
5
View file @
df1edfeb
...
...
@@ -47,7 +47,7 @@ def general(cal_settings) -> GeneralFoundation:
@pytest.fixture
def
foundation
(
cal_settings
)
->
RestoreFoundation
:
def
restore
(
cal_settings
)
->
RestoreFoundation
:
return
RestoreFoundation
(
parameters
=
cal_settings
,
metadata
=
test_restore_metadata
)
...
...
@@ -89,17 +89,17 @@ class TestRestoreFoundation:
"""
@patch
(
"
os.chdir
"
)
def
test_restore_data_foundation
(
self
,
mock_chdir
,
foundation
):
def
test_restore_data_foundation
(
self
,
mock_chdir
,
restore
):
with
patch
(
"
casa_envoy.foundation.RestoreFoundation.extract_cal
"
)
as
extract
:
with
patch
(
"
casa_envoy.foundation.set_permissions
"
)
as
permissions
:
foundation
.
data_foundation
()
restore
.
data_foundation
()
assert
mock_chdir
.
call_count
==
1
@patch
(
"
pathlib.Path.exists
"
,
return_value
=
True
)
@patch
(
"
tarfile.open
"
)
@patch
(
"
shutil.copytree
"
)
def
test_extract_cal
(
self
,
mock_copytree
,
mock_tar
,
mock_path
,
foundation
):
foundation
.
extract_cal
()
def
test_extract_cal
(
self
,
mock_copytree
,
mock_tar
,
mock_path
,
restore
):
restore
.
extract_cal
()
assert
mock_tar
.
call_count
==
1
assert
mock_copytree
.
call_count
==
1
...
...
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