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

Allow custom databases #247

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kwongtn
Copy link

@kwongtn kwongtn commented Oct 21, 2023

Description

Currently we only allow cahalot to be used for specific "supported" databases, with no option for us to override the setting, even though we know that (for example) the monkey patching we do is perfectly safe.

Rationale

This patch allows for manual overriding, such that we can use the package on unsupported databases.

@Andrew-Chen-Wang
Copy link
Collaborator

Please add to docs thanks

@kwongtn
Copy link
Author

kwongtn commented Oct 22, 2023

@Andrew-Chen-Wang done 😁

docs/quickstart.rst Outdated Show resolved Hide resolved
@Andrew-Chen-Wang
Copy link
Collaborator

thanks!

@Andrew-Chen-Wang
Copy link
Collaborator

ci seems to be failing

@Andrew-Chen-Wang
Copy link
Collaborator

Make sure these tests are passing:

======================================================================
  FAIL: test_database_compatibility (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 307, in test_database_compatibility
      self.assertListEqual(errors, [warning003])
  AssertionError: Lists differ: [<War[142 chars]ngine, add an entry in `CACHALOT_ADDITIONAL_SU[99 chars]03'>] != [<War[142 chars]ngine.', obj=None, id='cachalot.W003'>]
  
  First differing element 0:
  <Warn[141 chars]ngine, add an entry in `CACHALOT_ADDITIONAL_SU[98 chars]003'>
  <Warn[141 chars]ngine.', obj=None, id='cachalot.W003'>
  
  Diff is 756 characters long. Set self.maxDiff to None to see it.
  
  ======================================================================
  FAIL: test_databases (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 85, in test_databases
      self.assert_query_cached(qs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_django_override (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 30, in test_django_override
      self.assert_query_cached(qs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_enabled (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 36, in test_enabled
      self.assert_query_cached(qs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_invalidate_raw (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 139, in test_invalidate_raw
      with self.assertNumQueries(0):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_only_cachable_and_uncachable_table (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 207, in test_only_cachable_and_uncachable_table
      self.assert_query_cached(TestParent.objects.all())
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_testparent`.`id`, `cachalot_testparent`.`name` FROM `cachalot_testparent`
  
  ======================================================================
  FAIL: test_only_cachable_apps (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/utils.py", line 387, in inner
      return func(*args, **kwargs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 166, in test_only_cachable_apps
      self.assert_query_cached(Test.objects.all())
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_only_cachable_apps_set_combo (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/utils.py", line 387, in inner
      return func(*args, **kwargs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 175, in test_only_cachable_apps_set_combo
      self.assert_query_cached(Test.objects.all())
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_only_cachable_tables (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 144, in test_only_cachable_tables
      self.assert_query_cached(Test.objects.all())
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_uncachable_tables (cachalot.tests.settings.SettingsTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/settings.py", line 185, in test_uncachable_tables
      self.assert_query_cached(qs)
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 48, in assert_query_cached
      with self.assertNumQueries(after):
    File "/home/runner/work/django-cachalot/django-cachalot/.tox/py310-django3.2-mysql-pylibmc/lib/python3.10/site-packages/django/test/testcases.py", line 84, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 1 queries executed, 0 expected
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  
  ======================================================================
  FAIL: test_concurrent_caching_during_and_after_atomic_1 (cachalot.tests.thread_safety.ThreadSafetyTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/thread_safety.py", line 86, in test_concurrent_caching_during_and_after_atomic_1
      with self.assertNumQueries(0):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 
  1 queries executed on mysql, 0 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC LIMIT 1
  
  Captured queries, that were excluded:
  
  
  ======================================================================
  FAIL: test_concurrent_caching_during_and_after_atomic_2 (cachalot.tests.thread_safety.ThreadSafetyTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/thread_safety.py", line 101, in test_concurrent_caching_during_and_after_atomic_2
      with self.assertNumQueries(0):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 
  1 queries executed on mysql, 0 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC LIMIT 1
  
  Captured queries, that were excluded:
  
  
  ======================================================================
  FAIL: test_concurrent_caching_during_and_after_atomic_3 (cachalot.tests.thread_safety.ThreadSafetyTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/thread_safety.py", line 118, in test_concurrent_caching_during_and_after_atomic_3
      with self.assertNumQueries(0):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 
  1 queries executed on mysql, 0 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC LIMIT 1
  
  Captured queries, that were excluded:
  
  
  ======================================================================
  FAIL: test_get_or_create (cachalot.tests.write.WriteTestCase)
  Tests if the ``SELECT`` query of a ``QuerySet.get_or_create``
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/write.py", line 67, in test_get_or_create
      with self.assertNumQueries(0):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 1 != 0 : 
  1 queries executed on mysql, 0 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` WHERE `cachalot_test`.`name` = 'test' LIMIT 21
  
  Captured queries, that were excluded:
  
  
  ======================================================================
  FAIL: test_invalidate_foreign_key (cachalot.tests.write.WriteTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/write.py", line 247, in test_invalidate_foreign_key
      with self.assertNumQueries(1):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 2 != 1 : 
  2 queries executed on mysql, 1 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json` FROM `cachalot_test` ORDER BY `cachalot_test`.`name` ASC
  2. SELECT `auth_user`.`id`, `auth_user`.`password`, `auth_user`.`last_login`, `auth_user`.`is_superuser`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 156 LIMIT 21
  
  Captured queries, that were excluded:
  
  
  ======================================================================
  FAIL: test_invalidate_prefetch_related (cachalot.tests.write.WriteTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/write.py", line 641, in test_invalidate_prefetch_related
      with self.assertNumQueries(2):
    File "/home/runner/work/django-cachalot/django-cachalot/cachalot/tests/test_utils.py", line 106, in __exit__
      self.test_case.assertEqual(
  AssertionError: 3 != 2 : 
  3 queries executed on mysql, 2 expected
  
  Captured queries were:
  1. SELECT `cachalot_test`.`id`, `cachalot_test`.`name`, `cachalot_test`.`owner_id`, `cachalot_test`.`public`, `cachalot_test`.`date`, `cachalot_test`.`datetime`, `cachalot_test`.`permission_id`, `cachalot_test`.`a_float`, `cachalot_test`.`a_decimal`, `cachalot_test`.`a_choice`, `cachalot_test`.`bin`, `cachalot_test`.`ip`, `cachalot_test`.`duration`, `cachalot_test`.`uuid`, `cachalot_test`.`json`, `auth_user`.`id`, `auth_user`.`password`, `auth_user`.`last_login`, `auth_user`.`is_superuser`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`date_joined` FROM `cachalot_test` LEFT OUTER JOIN `auth_user` ON (`cachalot_test`.`owner_id` = `auth_user`.`id`) ORDER BY `cachalot_test`.`name` ASC
  2. SELECT (`auth_user_groups`.`user_id`) AS `_prefetch_related_val_user_id`, `auth_group`.`id`, `auth_group`.`name` FROM `auth_group` INNER JOIN `auth_user_groups` ON (`auth_group`.`id` = `auth_user_groups`.`group_id`) WHERE `auth_user_groups`.`user_id` IN (160)
  3. SELECT (`auth_group_permissions`.`group_id`) AS `_prefetch_related_val_group_id`, `auth_permission`.`id`, `auth_permission`.`name`, `auth_permission`.`content_type_id`, `auth_permission`.`codename` FROM `auth_permission` INNER JOIN `auth_group_permissions` ON (`auth_permission`.`id` = `auth_group_permissions`.`permission_id`) INNER JOIN `django_content_type` ON (`auth_permission`.`content_type_id` = `django_content_type`.`id`) WHERE `auth_group_permissions`.`group_id` IN (73) ORDER BY `django_content_type`.`app_label` ASC, `django_content_type`.`model` ASC, `auth_permission`.`codename` ASC
  
  Captured queries, that were excluded:
  
  
  ----------------------------------------------------------------------
  Ran 195 tests in 27.034s
  
  FAILED (failures=16, skipped=17)
  Destroying test database for alias 'default' ('test_cachalot')...
  Destroying test database for alias 'sqlite3' ('test_cachalot.sqlite3')...
  Destroying test database for alias 'postgresql' ('test_cachalot')...
  py310-django3.2-mysql-pylibmc: exit 16 (29.72 seconds) /home/runner/work/django-cachalot/django-cachalot> coverage run -a --source=cachalot ./runtests.py pid=12422
py310-django3.2-mysql-pylibmc: FAIL ✖ in 36.53 seconds
py310-django3.2-mysql-locmem: install_deps> python -I -m pip install beautifulsoup4 coverage django-debug-toolbar django-redis 'Django<4.0,>=3.2' Jinja2 mysqlclient psycopg 'psycopg2<3.0,>=2.9.5' pylibmc pymemcache python-memcached pytz
py310-django3.2-mysql-locmem: install_package_deps> python -I -m pip install 'Django<5.2,>=3.2'
py310-django3.2-mysql-locmem: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/django-cachalot/django-cachalot/.tox/.tmp/package/14/django_cachalot-2.7.0.tar.gz
py310-django3.2-mysql-locmem: freeze> python -m pip freeze --all
py310-django3.2-mysql-locmem: asgiref==3.8.1,async-timeout==5.0.1,beautifulsoup4==4.12.3,coverage==7.6.7,Django==3.2.25,django-cachalot @ file:///home/runner/work/django-cachalot/django-cachalot/.tox/.tmp/package/14/django_cachalot-2.7.0.tar.gz#sha256=b26d4964ac0349c511935a2d9e400b4ff91b6753aa52a3bba53da084148c4a84,django-debug-toolbar==4.3.0,django-redis==5.4.0,Jinja2==3.1.4,MarkupSafe==3.0.2,mysqlclient==2.2.6,pip==24.3.1,psycopg==3.2.3,psycopg2==2.9.10,pylibmc==1.6.3,pymemcache==4.0.0,python-memcached==1.62,pytz==2024.2,redis==5.2.0,setuptools==75.2.0,soupsieve==2.6,sqlparse==0.5.2,typing_extensions==4.12.2,wheel==0.44.0
tox: py310-django3.2-mysql-locmem
py310-django3.2-mysql-locmem: FAIL ✖ in 32.56 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants