| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e40d9ac commit bf985b3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -429,9 +429,8 @@ def test_create_kw_missing(self): | |||
| 429 | 429 | self.assertRaises(GitlabCreateError, self.gl.create, obj) | |
| 430 | 430 | ||
| 431 | 431 | def test_create_unknown_path(self): | |
| 432 | - obj = User(self.gl, data={"email": "email", "password": "password", | ||
| 433 | - "username": "username", "name": "name", | ||
| 434 | - "can_create_group": True}) | ||
| 432 | + obj = Project(self.gl, data={"name": "name"}) | ||
| 433 | + obj.id = 1 | ||
| 435 | 434 | obj._from_api = True | |
| 436 | 435 | ||
| 437 | 436 | @urlmatch(scheme="http", netloc="localhost", path="/api/v3/projects/1", | |
@@ -442,7 +441,7 @@ def resp_cont(url, request): | |||
| 442 | 441 | return response(404, content, headers, None, 5, request) | |
| 443 | 442 | ||
| 444 | 443 | with HTTMock(resp_cont): | |
| 445 | - self.assertRaises(GitlabCreateError, self.gl.create, obj) | ||
| 444 | + self.assertRaises(GitlabDeleteError, self.gl.delete, obj) | ||
| 446 | 445 | ||
| 447 | 446 | def test_create_401(self): | |
| 448 | 447 | obj = Group(self.gl, data={"name": "testgroup", "path": "testpath"}) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments