How to use the stashy.client.StashClient function in stashy

To help you get started, we’ve selected a few stashy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cosmin / stashy / tests / test_client.py View on Github external
def test_url_with_slash_prefix(self):
        client = StashClient("http://example.com/stash")
        self.assertEqual("http://example.com/stash/rest/api/1.0/admin/groups", client.url("/api/1.0/admin/groups"))
github cosmin / stashy / tests / test_client.py View on Github external
def test_url_without_slash_prefix(self):
        client = StashClient("http://example.com/stash")
        self.assertEqual("http://example.com/stash/rest/api/1.0/admin/groups", client.url("api/1.0/admin/groups"))
github cosmin / stashy / stashy / client.py View on Github external
def __init__(self, base_url, username=None, password=None, oauth=None, verify=True, token=None, session=None):
        self._client = StashClient(base_url, username, password, oauth, verify, token, session=session)