Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2287
Introduce flake8-bandit (S113)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Introduce flake8-bandit (S113)
introduce-bandit-s113
into
master
Overview
1
Commits
1
Pipelines
0
Changes
6
Merged
Yoann Schneider
requested to merge
introduce-bandit-s113
into
master
11 months ago
Overview
1
Commits
1
Pipelines
0
Changes
4
Expand
Based on
!2281 (merged)
Introduces:
https://docs.astral.sh/ruff/rules/request-without-timeout/
Edited
11 months ago
by
Yoann Schneider
0
0
Merge request reports
Compare
version 1
version 3
00899016
11 months ago
version 2
f15286a1
11 months ago
version 1
00899016
11 months ago
master (base)
and
version 2
latest version
449422d6
1 commit,
11 months ago
version 3
00899016
2 commits,
11 months ago
version 2
f15286a1
3 commits,
11 months ago
version 1
00899016
2 commits,
11 months ago
Show latest version
4 files
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
arkindex/documents/tests/test_indexer.py
+
2
−
2
Options
import
json
from
hashlib
import
md5
from
hashlib
import
sha256
from
unittest.mock
import
patch
from
uuid
import
UUID
@@ -103,7 +103,7 @@ class TestIndexerCommand(FixtureTestCase):
self
.
assertEqual
(
indexer
.
hash_worker
(
self
.
worker_version
),
self
.
worker
.
name
)
def
test_build_id
(
self
):
expected
=
UUID
(
md5
(
self
.
page
.
id
.
bytes
+
self
.
page
.
id
.
bytes
).
hexdigest
())
expected
=
UUID
(
sha256
(
self
.
page
.
id
.
bytes
+
self
.
page
.
id
.
bytes
).
hexdigest
())
indexer
=
Indexer
(
None
)
self
.
assertEqual
(
indexer
.
build_solr_id
(
self
.
page
,
self
.
page
),
expected
)
Loading