Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
sercasti committed Oct 18, 2024
1 parent 0865753 commit f4df1a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/googleanalytics/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def tracking_id():

def opendata_measurement_id():
# type: () -> str
return tk.config["googleanalytics.opendata_measurement_id"]
return str(tk.config["googleanalytics.opendata_measurement_id"], '')


def download_handler():
Expand Down
1 change: 1 addition & 0 deletions ckanext/googleanalytics/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def _render_header(mode, tracking_id):
"googleanalytics_id": tracking_id,
"googleanalytics_domain": config.domain(),
"googleanalytics_fields": config.fields(),
"googleanalytics_opendata_measurement_id": config.opendata_measurement_id(),
"googleanalytics_linked_domains": config.linked_domains()
})

Expand Down
1 change: 1 addition & 0 deletions test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use = config:../ckan/test-core.ini
ckan.plugins = googleanalytics

googleanalytics.id = UA-000000000-1
googleanalytics.opendata_measurement_id = G-0000000000

# Logging configuration
[loggers]
Expand Down

0 comments on commit f4df1a0

Please sign in to comment.