Skip to content

Commit

Permalink
chore: fix py2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Jun 28, 2024
1 parent 5a4f3d3 commit 5eff018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/googleanalytics/tests/test_view.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest

import six
import ckan.plugins.toolkit as tk
from ckanext.googleanalytics import config

Expand All @@ -23,4 +23,4 @@ def test_tracking_(self, mode, tracking_id, app, ckan_config, monkeypatch):
monkeypatch.setitem(ckan_config, config.CONFIG_TRACKING_MODE, mode)
snippet = _render_header(mode, tracking_id)
resp = app.get("/about")
assert snippet in resp.body
assert six.ensure_str(snippet) in resp
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
keywords =
CKAN

Expand Down

0 comments on commit 5eff018

Please sign in to comment.