From 59f51c1ba50a5cc7f3d92432479d145440abe01a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 15 Jan 2017 19:36:39 +0100 Subject: vainglory -> Vainglory --- examples/dashboard/app.py | 2 +- gamelocker/api.py | 2 +- tests/gamelocker_test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/dashboard/app.py b/examples/dashboard/app.py index 78c3262..754004f 100644 --- a/examples/dashboard/app.py +++ b/examples/dashboard/app.py @@ -32,7 +32,7 @@ def data(): return render_template("stats.js", stats=data) data = dict() - api = gamelocker.Gamelocker("aaa.bbb.ccc").vainglory() + api = gamelocker.Gamelocker("aaa.bbb.ccc").Vainglory() data["number"] = config.batchsize matches = api.matches(data["number"]) diff --git a/gamelocker/api.py b/gamelocker/api.py index c1383d6..905f9fa 100644 --- a/gamelocker/api.py +++ b/gamelocker/api.py @@ -102,7 +102,7 @@ class Gamelocker(object): element = gamelocker.datatypes.link_to_object(element, includes) return element - def vainglory(self): + def Vainglory(self): """Sets title to Vainglory. :return: :class:`Gamelocker ` object diff --git a/tests/gamelocker_test.py b/tests/gamelocker_test.py index 373269a..2af10e2 100644 --- a/tests/gamelocker_test.py +++ b/tests/gamelocker_test.py @@ -10,7 +10,7 @@ class TestGamelocker: @pytest.fixture def api(self): - return gamelocker.Gamelocker(self.apikey).vainglory() + return gamelocker.Gamelocker(self.apikey).Vainglory() def test_req(self, api): with pytest.raises(requests.exceptions.HTTPError): -- cgit v1.3.1