Compare commits

..

4 Commits

Author SHA1 Message Date
Valentin Deniaud cc2e66c791 misc: bump djhtml version (#75442)
gitea/combo/pipeline/head There was a failure building this commit Details
2023-03-16 14:53:59 +01:00
Valentin Deniaud d66f55d760 misc: bump black version (#75442) 2023-03-16 14:53:59 +01:00
Valentin Deniaud 4e9a2929b6 misc: change pyupgrade target version to 3.9 (#75442) 2023-03-16 14:53:59 +01:00
Valentin Deniaud d726487e08 misc: move AppConfig subclasses from init to apps.py (#75442) 2023-03-16 14:53:59 +01:00
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ from combo.apps.wcs.utils import get_matching_pages_from_card_slug
from combo.data.models import Page
from combo.profile import default_description_template
from . import engines
from .engines import engines
from .models import SearchCell

View File

@ -32,7 +32,7 @@ from combo.data.library import register_cell_class
from combo.data.models import CellBase, Page
from combo.utils import get_templated_url, requests
from . import engines
from .engines import engines
def get_root_page_and_children(service_slug):

View File

@ -11,7 +11,7 @@ pytestmark = pytest.mark.django_db
@override_settings(STATISTICS_PROVIDERS=[])
def test_cron_run(app):
with mock.patch('combo.apps.lingo.AppConfig.hourly') as hourly_job:
with mock.patch('combo.apps.lingo.apps.AppConfig.hourly') as hourly_job:
call_command('cron')
assert hourly_job.call_count == 1
@ -23,7 +23,7 @@ def test_cron_run(app):
def test_cron_error(app):
with mock.patch('combo.apps.lingo.AppConfig.hourly') as hourly_job:
with mock.patch('combo.apps.lingo.apps.AppConfig.hourly') as hourly_job:
hourly_job.side_effect = Exception('test error')
out = StringIO()
with pytest.raises(CommandError):