diff --git a/.travis.yml b/.travis.yml index 33e97ab..717e6b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ install: - pip install requests - pip install python-coveralls - pip install coverage + - pip install nose # command to run tests script: diff --git a/grafana_api/grafana_face.py b/grafana_api/grafana_face.py index e177a4c..3cbce48 100644 --- a/grafana_api/grafana_face.py +++ b/grafana_api/grafana_face.py @@ -1,4 +1,3 @@ -import json from .grafana_api import GrafanaAPI @@ -565,14 +564,14 @@ def get_api_keys(self): r = self.api.GET(get_api_keys_path) return r - def create_api_key(self, json): + def create_api_key(self, json_data): """ - :param json: + :param json_data: :return: """ create_api_key_path = '/auth/keys' - r = self.api.POST(create_api_key_path, json=json) + r = self.api.POST(create_api_key_path, json=json_data) return r def delete_api_key(self, id):