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
fdf52f54
Commit
fdf52f54
authored
11 months ago
by
Daniel Nemergut
Browse files
Options
Downloads
Patches
Plain Diff
Added a test for copying a flagtargetstemplate.txt into rawdata
parent
aaf04517
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1669
Catchup with main
,
!1640
WS-1975 Image flagtemplate rawdata
Pipeline
#15283
failed
11 months ago
Stage: pull-db
Stage: build-packages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
+13
-0
13 additions, 0 deletions
...li/executables/pexable/casa_envoy/test/test_foundation.py
with
13 additions
and
0 deletions
apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
+
13
−
0
View file @
fdf52f54
...
...
@@ -78,6 +78,19 @@ class TestGeneralFoundation:
general
.
data_foundation
()
assert
mock_copy
.
call_count
==
2
@patch
(
"
pathlib.Path.glob
"
,
return_value
=
[
"
TSKY0001_split.flagtargetstemplate.txt
"
])
@patch
(
"
pathlib.Path.exists
"
,
return_value
=
True
)
@patch
(
"
shutil.copy
"
)
def
test_general_copy_into_rawdata
(
self
,
mock_copy
,
mock_exists
,
mock_glob
):
general
.
copy_into_rawdata
()
assert
mock_exists
.
call_count
==
1
assert
mock_copy
.
call_count
==
1
assert
mock_glob
.
call_count
==
1
# Ensure copy was called on the expected files
rawdata_dir_path
=
Path
(
'
/lustre/aoc/cluster/pipeline/docker/workspaces/spool/tmpo1ca1pp_/rawdata
'
)
mock_copy
.
assert_any_call
(
"
TSKY0001_split.flagtargetstemplate.txt
"
,
rawdata_dir_path
)
class
TestRestoreFoundation
:
"""
...
...
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