Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/test/test_endpoint_status.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# | # | ||||
# Copyright (c) 2017-2019 The Bitcoin ABC developers | # Copyright (c) 2017-2019 The Bitcoin ABC developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
import json | import json | ||||
import mock | import mock | ||||
import requests | import requests | ||||
import unittest | import unittest | ||||
from urllib.parse import urljoin | from urllib.parse import urljoin | ||||
from build import BuildStatus | from build import BuildStatus | ||||
from phabricator_wrapper import BITCOIN_ABC_REPO | from phabricator_wrapper import BITCOIN_ABC_REPO | ||||
from server import BADGE_TC_BASE | from server import BADGE_TC_BASE | ||||
from teamcity import BuildInfo | from teamcity_wrapper import BuildInfo | ||||
from testutil import AnyWith | from testutil import AnyWith | ||||
from test.abcbot_fixture import ABCBotFixture | from test.abcbot_fixture import ABCBotFixture | ||||
import test.mocks.fixture | import test.mocks.fixture | ||||
import test.mocks.phabricator | import test.mocks.phabricator | ||||
import test.mocks.teamcity | import test.mocks.teamcity | ||||
from test.mocks.teamcity import DEFAULT_BUILD_ID, TEAMCITY_CI_USER | from test.mocks.teamcity import DEFAULT_BUILD_ID, TEAMCITY_CI_USER | ||||
▲ Show 20 Lines • Show All 1,618 Lines • Show Last 20 Lines |