mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 22:14:46 +00:00
Clear bot-flagged test nits and annotate the sandbox workspace path
Wrap a storage read in a context manager (close the file handle), add a comment on the expected SandboxCapacityError in the churn test, and unify the artifacts-routes test on a single import style. Also annotate the intentional per-session sandbox workspace path with # nosec B108 (controlled dir inside the runner container, not an insecure shared temp file).
This commit is contained in:
1 parent
0d67734fdd
commit
00896eb828
4 files changed
+5
-3
No files matched your search
@@ -486,7 +486,7 @@ class TestMalformedArtifactId:
|
||||
self, _patch_db, flask_app, token_owner, resource_name,
|
||||
extra_args, method, json_body,
|
||||
):
|
||||
import application.api.user.artifacts.routes as routes_mod
|
||||
from application.api.user.artifacts import routes as routes_mod
|
||||
|
||||
resource_cls = getattr(routes_mod, resource_name)
|
||||
resp = _call(
|
||||
|
||||
Reference in new issue
Block a user