Remove ref check
This commit is contained in:
1 parent
62be2d30f3
commit
0217d98d4f
1 file changed
-10
@@ -46,16 +46,6 @@ def test_auth():
|
|||||||
assert response.status_code == 403
|
assert response.status_code == 403
|
||||||
assert response.text == '{"detail":"Unauthorized"}'
|
assert response.text == '{"detail":"Unauthorized"}'
|
||||||
|
|
||||||
|
|
||||||
# def test_branch():
|
|
||||||
# payload = {"ref": "refs/heads/master"}
|
|
||||||
# response = client.post("/test_ref", json= payload)
|
|
||||||
# assert response.status_code == 202
|
|
||||||
|
|
||||||
# payload = {"ref": "refs/heads/test"}
|
|
||||||
# response = client.post("/test_ref", json= payload)
|
|
||||||
# assert response.status_code == 403
|
|
||||||
|
|
||||||
def test_web():
|
def test_web():
|
||||||
response = client.get('/test_web?token={}'.format(getenv("TOKEN")))
|
response = client.get('/test_web?token={}'.format(getenv("TOKEN")))
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|||||||
Reference in new issue
Block a user