This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
from bintray.bintray import Bintray | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from bintray.bintray import Bintray | ||
|
||
|
||
def test_sync_version_artifacts_to_maven_central(): | ||
bintray = Bintray() | ||
error_message = "" | ||
try: | ||
bintray.sync_version_artifacts_to_maven_central("uilianries", "generic", "statistics", | ||
"test", "username", "password") | ||
except Exception as error: | ||
error_message = str(error) | ||
|
||
assert "Could not POST (403): 403 Client Error: Forbidden for url: " \ | ||
"https://api.bintray.com/maven_central_sync/uilianries/generic/statistics/versions/test"\ | ||
== error_message |