Skip to content

Commit

Permalink
Add unit tests for helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vladoohr committed Jul 9, 2019
1 parent acc1bbb commit 453fab2
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/knowledgehub/logic/action/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def resource_create(context, data_dict):

data_dict['upload'] = FlaskFileStorage(stream, filename)

ckan_rsc_create(context, data_dict)
return ckan_rsc_create(context, data_dict)


# Overwrite of the original 'resource_view_create'
Expand Down
2 changes: 1 addition & 1 deletion ckanext/knowledgehub/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def setup(self):
resource_feedback_setup()
kwh_data_setup()
rnn_corpus_setup()
os.environ["CKAN_INI"] = 'subdir/test.ini'
os.environ["CKAN_INI"] = 'test.ini'


class TestKWHCreateActions(ActionsBase):
Expand Down
Loading

0 comments on commit 453fab2

Please sign in to comment.