Skip to content

Commit

Permalink
pycodestyle line length
Browse files Browse the repository at this point in the history
  • Loading branch information
lrromero committed Oct 22, 2018
1 parent 961b9e3 commit 72a28fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions pydatajson/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def dataset_to_markdown(dataset):


def distribution_to_markdown(distribution):
"""Genera texto en markdown a partir de los metadatos de una `distribution`.
"""Genera texto en markdown a partir de los metadatos de una
`distribution`.
Args:
distribution (dict): Diccionario con metadatos de una `distribution`.
distribution (dict): Diccionario con metadatos de una
`distribution`.
Returns:
str: Texto que describe una `distribution`.
Expand Down
9 changes: 5 additions & 4 deletions pydatajson/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,13 @@ def push_organization_tree_to_ckan(portal_url, apikey, org_tree, parent=None):
portal_url (str): La URL del portal CKAN de destino.
apikey (str): La apikey de un usuario con los permisos que le
permitan crear las organizaciones.
org_tree(list): lista de diccionarios con la data de organizaciones
a crear.
org_tree(list): lista de diccionarios con la data de las
organizaciones a crear.
parent(str): campo name de la organizacion padre.
Returns:
(list): Devuelve el arbol de organizaciones recorridas, junto con el
status detallando si la creación fue exitosa o no.
(list): Devuelve el arbol de organizaciones recorridas,
junto con el status detallando si la creación fue
exitosa o no.
"""
portal = RemoteCKAN(portal_url, apikey=apikey)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ class OrganizationsTestCase(FederationSuite):
def setUp(self):
self.portal_url = 'portal_url'
self.apikey = 'apikey'
self.org_tree = json.load(open(self.get_sample('organization_tree.json')))
self.org_tree = json.load(open(
self.get_sample('organization_tree.json')))

def check_hierarchy(self, node, parent=None):
if not node['success']:
Expand Down

0 comments on commit 72a28fc

Please sign in to comment.