Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update webassets.yml #16

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ckanext/orgportals/fanstatic/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ nav-bar-js:

nav-bar-css:
output: ckanext-orgportals/%(version)s_nav_bar.css
filters: cssrewrite
contents:
- vendor/dragula/dragula.css
- nav-bar.css
Expand All @@ -43,7 +42,6 @@ topics-js:

topics-css:
output: ckanext-orgportals/%(version)s_topics.css
filters: cssrewrite
contents:
- vendor/dragula/dragula.css
- topics-settings.css
Expand All @@ -60,7 +58,6 @@ content-js:

content-css:
output: ckanext-orgportals/%(version)s_content.css
filters: cssrewrite
contents:
- vendor/dragula/dragula.css
- content-settings.css
Expand Down
23 changes: 0 additions & 23 deletions ckanext/orgportals/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,29 +101,6 @@ def test_resource_show_map_properties(self):
assert map_properties[i]['text'] == item[0]
'''

def test_orgportals_share_graph_on_twitter(self):
image_path = os.path.join(os.path.realpath(
os.path.join(os.getcwd(),
os.path.dirname(__file__))), 'graph_image.png')

with open(image_path, 'rb') as image_file:
base64_image = base64.b64encode(image_file.read())

data_dict = {
'oauth_token':
config.get('ckanext.orgportals.twitter_oauth_token'),
'oauth_token_secret':
config.get('ckanext.orgportals.twitter_oauth_token_secret'),
'graph_title': 'test',
'subdashboard_url': 'http://google.com',
'image': base64_image
}

response = toolkit.get_action('orgportals_share_graph_on_twitter')(
self.mock_data['context'], data_dict)

assert response['share_status_success'] is True

def test_organization_create(self):
org = toolkit.get_action('organization_create')(
self.mock_data['context'], {'name': 'test_org'})
Expand Down
Loading