Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit ea404f3

Browse files
committed
#21 Validate license remote
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 7d3ccb8 commit ea404f3

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

docs/bintray_REST_API.pdf

457 KB
Binary file not shown.

tests/test_licenses.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,24 @@ def test_update_user_proprietary_licenses():
8989

9090
assert "Could not PATCH (405): 405 Client Error: Method Not Allowed for url: " \
9191
"https://api.bintray.com/users/uilianries/licenses/foobar"
92+
93+
94+
def test_delete_org_proprietary_licenses():
95+
bintray = Bintray()
96+
error_message = ""
97+
try:
98+
bintray.delete_org_proprietary_license(org="jfrog", custom_license_name="foobar")
99+
except Exception as error:
100+
error_message = str(error)
101+
assert "Could not DELETE (403): 403 Client Error: Forbidden for url: " \
102+
"https://api.bintray.com/orgs/jfrog/licenses/foobar"
103+
104+
def test_delete_user_proprietary_licenses():
105+
bintray = Bintray()
106+
error_message = ""
107+
try:
108+
bintray.delete_user_proprietary_license(user="uilianries", custom_license_name="foobar")
109+
except Exception as error:
110+
error_message = str(error)
111+
assert "Could not DELETE (403): 403 Client Error: Forbidden for url: " \
112+
"https://api.bintray.com/users/uilianries/licenses/foobar"

0 commit comments

Comments
 (0)