django-cms-qe 3.0.2__py3-none-any.whl → 3.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cms_qe/boilerplates/bootstrap3/templates/cms_qe/home.html +1 -2
- cms_qe/settings/base/cms.py +2 -1
- cms_qe_i18n/templates/cms_qe/i18n/language_switcher.html +0 -2
- cms_qe_newsletter/templates/admin/cms_qe_newsletter/mailinglist/change_list.html +0 -1
- cms_qe_table/templates/cms_qe/table/columns_widget.html +1 -2
- {django_cms_qe-3.0.2.dist-info → django_cms_qe-3.0.3.dist-info}/METADATA +1 -1
- {django_cms_qe-3.0.2.dist-info → django_cms_qe-3.0.3.dist-info}/RECORD +10 -78
- cms_qe/tests/__init__.py +0 -0
- cms_qe/tests/test_errors.py +0 -61
- cms_qe/tests/test_export.py +0 -108
- cms_qe/tests/test_monitoring.py +0 -15
- cms_qe/tests/test_utils.py +0 -77
- cms_qe/tests/test_views_security.py +0 -18
- cms_qe_analytical/LICENSE.txt +0 -19
- cms_qe_analytical/tests/__init__.py +0 -0
- cms_qe_analytical/tests/settings.py +0 -24
- cms_qe_analytical/tests/templatetags/__init__.py +0 -0
- cms_qe_analytical/tests/templatetags/dummy.py +0 -37
- cms_qe_analytical/tests/test_tag_google_analytics.py +0 -178
- cms_qe_analytical/tests/test_tag_piwik.py +0 -152
- cms_qe_analytical/tests/test_utils.py +0 -112
- cms_qe_analytical/tests/utils.py +0 -56
- cms_qe_auth/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0002_auto_20171208_0915.cpython-38.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0002_auto_20171208_0915.cpython-39.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0003_auto_20210420_1050.cpython-38.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0003_auto_20210420_1050.cpython-39.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0004_alter_user_first_name_alter_user_id.cpython-39.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/0005_delete_group.cpython-39.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
- cms_qe_auth/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- cms_qe_auth/tests/__init__.py +0 -0
- cms_qe_auth/tests/test_models.py +0 -70
- cms_qe_auth/tests/test_utils.py +0 -36
- cms_qe_auth/tests/test_view.py +0 -72
- cms_qe_auth/tests/utils.py +0 -22
- cms_qe_menu/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
- cms_qe_menu/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- cms_qe_menu/migrations/__pycache__/0002_alter_menupluginmodel_cmsplugin_ptr.cpython-39.pyc +0 -0
- cms_qe_menu/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
- cms_qe_menu/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- cms_qe_newsletter/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
- cms_qe_newsletter/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- cms_qe_newsletter/migrations/__pycache__/0002_alter_mailinglist_id_and_more.cpython-39.pyc +0 -0
- cms_qe_newsletter/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
- cms_qe_newsletter/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- cms_qe_newsletter/tests/__init__.py +0 -0
- cms_qe_newsletter/tests/test_mailchimp.py +0 -38
- cms_qe_newsletter/tests/test_managment.py +0 -22
- cms_qe_newsletter/tests/test_models.py +0 -43
- cms_qe_newsletter/tests/test_plugin.py +0 -21
- cms_qe_newsletter/tests/test_sync.py +0 -71
- cms_qe_newsletter/tests/test_views.py +0 -13
- cms_qe_table/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
- cms_qe_table/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- cms_qe_table/migrations/__pycache__/0002_alter_tablepluginmodel_columns_and_more.cpython-39.pyc +0 -0
- cms_qe_table/migrations/__pycache__/0002_tablepluginmodel_filter.cpython-38.pyc +0 -0
- cms_qe_table/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
- cms_qe_table/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- cms_qe_table/static/cms_qe/css/table/columns-widget.css +0 -11
- cms_qe_table/static/cms_qe/js/table/Sortable.min.js +0 -2
- cms_qe_table/tests/__init__.py +0 -0
- cms_qe_table/tests/test_models.py +0 -23
- cms_qe_table/tests/test_plugin.py +0 -18
- cms_qe_table/tests/test_utils.py +0 -90
- cms_qe_video/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
- cms_qe_video/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- cms_qe_video/migrations/__pycache__/0002_alter_hostingvideoplayer_cmsplugin_ptr_and_more.cpython-39.pyc +0 -0
- cms_qe_video/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
- cms_qe_video/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- cms_qe_video/tests/__init__.py +0 -0
- cms_qe_video/tests/test_models.py +0 -96
- cms_qe_video/tests/test_plugin.py +0 -24
- cms_qe_video/tests/test_templatetags.py +0 -20
- {django_cms_qe-3.0.2.dist-info → django_cms_qe-3.0.3.dist-info}/LICENSE +0 -0
- {django_cms_qe-3.0.2.dist-info → django_cms_qe-3.0.3.dist-info}/WHEEL +0 -0
- {django_cms_qe-3.0.2.dist-info → django_cms_qe-3.0.3.dist-info}/top_level.txt +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
|
|
3
|
-
from pytest_data import use_data
|
|
4
|
-
|
|
5
|
-
from cms_qe_test import render_plugin
|
|
6
|
-
|
|
7
|
-
from ..cms_plugins import HostingVideoPlayerPlugin, SourceFileVideoPlayerPlugin
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@use_data(cms_qe_video_source_file_video_player_model_data={'source_file': None})
|
|
11
|
-
def test_render_source_file_video_plugin_without_source_file(cms_qe_video_source_file_video_player_model):
|
|
12
|
-
html = render_plugin(SourceFileVideoPlayerPlugin, cms_qe_video_source_file_video_player_model)
|
|
13
|
-
assert re.search(r'<p>Video file is missing</p>', html)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def test_render_source_file_video_plugin(cms_qe_video_source_file_video_player_model):
|
|
17
|
-
html = render_plugin(SourceFileVideoPlayerPlugin, cms_qe_video_source_file_video_player_model)
|
|
18
|
-
assert not re.search(r'<iframe(\s|.)*</iframe>', html)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def test_render_hosting_video_plugin(cms_qe_video_hosting_video_player_model):
|
|
22
|
-
html = render_plugin(HostingVideoPlayerPlugin, cms_qe_video_hosting_video_player_model)
|
|
23
|
-
assert not re.search(r'<video(\s|.)*</video>', html)
|
|
24
|
-
assert re.search(r'<iframe(\s|.)*</iframe>', html)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
|
|
3
|
-
from ..templatetags.cms_qe_video import cms_qe_video_url_to_embed
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@pytest.mark.parametrize('url, expected', [
|
|
7
|
-
('https://servis.com/somevideo', 'https://servis.com/somevideo'),
|
|
8
|
-
('http://vimeo.com/somevideo', 'http://player.vimeo.com/video/somevideo'),
|
|
9
|
-
('https://vimeo.com/somevideo', 'https://player.vimeo.com/video/somevideo'),
|
|
10
|
-
('https://vimeo.com/somevideo?param', 'https://player.vimeo.com/video/somevideo'),
|
|
11
|
-
('https://youtu.be/watch?v=ZGuQmszmtaQ', 'https://www.youtube.com/embed/ZGuQmszmtaQ'),
|
|
12
|
-
('https://www.youtube.com/watch?v=ZGuQmszmtaQ', 'https://www.youtube.com/embed/ZGuQmszmtaQ'),
|
|
13
|
-
# Test for bug with additional parameters in link.
|
|
14
|
-
# Related on issue: https://gitlab.labs.nic.cz/websites/django-cms-qe/issues/41
|
|
15
|
-
('https://www.youtube.com/watch?v=ZGuQmszmtaQ&index=10&list=PLfTu7SiuiT_izjvg_1JRKXkrWSnvuP4pd',
|
|
16
|
-
'https://www.youtube.com/embed/ZGuQmszmtaQ'),
|
|
17
|
-
('https://youtu.be/ZGuQmszmtaQ', 'https://www.youtube.com/embed/ZGuQmszmtaQ'),
|
|
18
|
-
])
|
|
19
|
-
def test_url_to_embed(url, expected):
|
|
20
|
-
assert expected == cms_qe_video_url_to_embed(url)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|