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
Merge requests
!1299
catch the case where directory no longer exists
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
catch the case where directory no longer exists
fix_dir_not_exist_abort_error
into
main
Overview
0
Commits
3
Pipelines
3
Changes
3
Merged
Charlotte Hausman
requested to merge
fix_dir_not_exist_abort_error
into
main
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
3
Expand
sometimes people do stupid things. Stupid things should not cause functionality failures.
0
0
Merge request reports
Compare
version 2
version 2
4d6cb932
1 year ago
version 1
0819d5d0
1 year ago
main (base)
and
latest version
latest version
cdb43fee
3 commits,
1 year ago
version 2
4d6cb932
2 commits,
1 year ago
version 1
0819d5d0
1 commit,
1 year ago
Show latest version
3 files
+
10
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
shared/workspaces/test/test_remote_processing_service.py
+
2
−
1
Options
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with Workspaces. If not, see <https://www.gnu.org/licenses/>.
from
datetime
import
datetime
from
unittest.mock
import
patch
from
unittest.mock
import
patch
,
MagicMock
from
test.test_workflow_info
import
FakeWorkflowInfo
from
workspaces.system.schema
import
AbstractFile
@@ -92,6 +92,7 @@ class TestCapoInjector:
@patch
(
"
pathlib.Path.unlink
"
)
@patch
(
"
glob.glob
"
)
@patch
(
"
os.listdir
"
)
@patch
(
"
pathlib.Path.exists
"
,
MagicMock
(
return_value
=
True
))
def
test_clear_subspace
(
self
,
mock_os
,
mock_glob
,
mock_remove
):
injector
.
clear_subspace
()
assert
mock_os
.
call_count
==
1
Loading