From 83670a49a3affd2465f8fcbcc3c26141592c1ccd Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sat, 17 Apr 2021 14:06:36 -0700 Subject: chore: fix E712 errors reported by flake8 E712: Comparison to true should be 'if cond is true:' or 'if cond:' https://www.flake8rules.com/rules/E712.html --- gitlab/tests/test_gitlab_http_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitlab/tests/test_gitlab_http_methods.py') diff --git a/gitlab/tests/test_gitlab_http_methods.py b/gitlab/tests/test_gitlab_http_methods.py index 253ad16..7d9e61e 100644 --- a/gitlab/tests/test_gitlab_http_methods.py +++ b/gitlab/tests/test_gitlab_http_methods.py @@ -219,7 +219,7 @@ def test_delete_request(gl): with HTTMock(resp_cont): result = gl.http_delete("/projects") assert isinstance(result, requests.Response) - assert result.json() == True + assert result.json() is True def test_delete_request_404(gl): -- cgit v1.2.1