Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65ce026

Browse files
committed
chore: apply suggestions
1 parent61e43eb commit65ce026

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

‎tools/functional/api/test_gitlab.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_hooks(gl):
110110

111111
deftest_namespaces(gl):
112112
namespace=gl.namespaces.list(all=True)
113-
assertlen(namespace)!=0
113+
assertnamespace
114114

115115
namespace=gl.namespaces.list(search="root",all=True)[0]
116116
assertnamespace.kind=="user"

‎tools/functional/api/test_import_export.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
importtime
22

3+
importgitlab
4+
35

46
deftest_group_import_export(gl,group,temp_dir):
57
export=group.exports.create()
@@ -29,7 +31,10 @@ def test_group_import_export(gl, group, temp_dir):
2931

3032
deftest_project_import_export(gl,project,temp_dir):
3133
export=project.exports.create()
32-
export.refresh()
34+
assertexport.message=="202 Accepted"
35+
36+
export=project.exports.get()
37+
assertisinstance(export,gitlab.v4.objects.ProjectExport)
3338

3439
count=0
3540
whileexport.export_status!="finished":

‎tools/functional/api/test_repository.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_repository_files(project):
4141

4242
deftest_repository_tree(project):
4343
tree=project.repository_tree()
44-
assertlen(tree)!=0
44+
asserttree
4545
asserttree[0]["name"]=="README.rst"
4646

4747
blob_id=tree[0]["id"]

‎tools/functional/api/test_users.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ def test_delete_user(gl, wait_for_sidekiq):
6363

6464
deftest_user_projects_list(gl,user):
6565
projects=user.projects.list()
66-
assertlen(projects)==0
66+
assertisinstance(projects,list)
67+
assertnotprojects
6768

6869

6970
deftest_user_events_list(gl,user):
7071
events=user.events.list()
71-
assertlen(events)==0
72+
assertisinstance(events,list)
73+
assertnotevents
7274

7375

7476
deftest_user_bio(gl,user):

‎tools/functional/conftest.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
importtempfile
22
importtime
33
importuuid
4-
fromcontextlibimportcontextmanager
54
frompathlibimportPath
65
fromrandomimportrandint
76
fromsubprocessimportcheck_output

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp