Skip to content

Commit b57a863

Browse files
committed
fix: delete assertion on user_agent_detail
I am not certain what value this is adding to tests Something has changed in 16 which causes this to break, nothing obvious leaps out in the documentation Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent 2e70258 commit b57a863

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tests/functional/api/test_issues.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def test_create_issue(project):
1818
assert issue in project.issues.list(state="opened")
1919
assert issue2 in project.issues.list(state="closed")
2020

21-
assert isinstance(issue.user_agent_detail(), dict)
22-
assert issue.user_agent_detail()["user_agent"]
2321
assert issue.participants()
2422
assert type(issue.closed_by()) == list
2523
assert type(issue.related_merge_requests()) == list

tests/functional/api/test_snippets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def test_snippets(gl):
2020

2121
content = snippet.content()
2222
assert content.decode() == "import gitlab"
23-
assert snippet.user_agent_detail()["user_agent"]
2423

2524
snippet.delete()
2625
assert snippet not in gl.snippets.list(get_all=True)
@@ -38,7 +37,7 @@ def test_project_snippets(project):
3837
}
3938
)
4039

41-
assert snippet.user_agent_detail()["user_agent"]
40+
assert snippet.title == "snip1"
4241

4342

4443
def test_project_snippet_discussion(project):

0 commit comments

Comments
 (0)