Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
72801ccc
"megatron/vscode:/vscode.git/clone" did not exist on "7fccd6a17aa817df63bed3956b3e29491b9ce42d"
Commit
72801ccc
authored
May 22, 2024
by
quyuan
Browse files
add case
parent
6c5b7ae8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
tests/test_unit.py
tests/test_unit.py
+9
-1
No files found.
tests/test_unit.py
View file @
72801ccc
...
@@ -518,4 +518,12 @@ def test_bbox_distance(box1: tuple, box2: tuple, target_num: float) -> None:
...
@@ -518,4 +518,12 @@ def test_bbox_distance(box1: tuple, box2: tuple, target_num: float) -> None:
def
test_get_s3_config
()
->
None
:
def
test_get_s3_config
()
->
None
:
bucket_name
=
os
.
getenv
(
'bucket_name'
)
bucket_name
=
os
.
getenv
(
'bucket_name'
)
target_data
=
os
.
getenv
(
'target_data'
)
target_data
=
os
.
getenv
(
'target_data'
)
assert
target_data
==
list
(
get_s3_config
(
bucket_name
))
assert
convert_string_to_list
(
target_data
)
==
list
(
get_s3_config
(
bucket_name
))
def
convert_string_to_list
(
s
):
cleaned_s
=
s
.
strip
(
"'"
)
items
=
cleaned_s
.
split
(
','
)
cleaned_items
=
[
item
.
strip
()
for
item
in
items
]
return
cleaned_items
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment