chore: fix py2 tests

This commit is contained in:
Sergey Motornyuk 2024-06-28 19:09:59 +03:00
parent 5a4f3d35d2
commit 5eff018a31
No known key found for this signature in database
GPG Key ID: 718E16AD9E4B91EA
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import pytest
import six
import ckan.plugins.toolkit as tk
from ckanext.googleanalytics import config
@ -23,4 +23,4 @@ class TestCodeSnippets:
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

View File

@ -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