From be44830fb686dfd0da5204fd7f0c51788b1d4bd8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 14 Feb 2024 14:14:49 +0000 Subject: [PATCH] Commit changes made by code formatters --- core/settings.py | 3 ++- tests/conftest.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/settings.py b/core/settings.py index 847c29f7..70bdb09c 100644 --- a/core/settings.py +++ b/core/settings.py @@ -113,7 +113,8 @@ "django.contrib.staticfiles.finders.AppDirectoriesFinder", ) -SAMPLE_SEARCH_RESULTS_FILENAME = BASE_DIR / "sample_data/sample_search_page.yaml" +SAMPLE_SEARCH_RESULTS_FILENAME = BASE_DIR / \ + "sample_data/sample_search_page.yaml" with open(SAMPLE_SEARCH_RESULTS_FILENAME) as f: SAMPLE_SEARCH_RESULTS = yaml.safe_load(f) diff --git a/tests/conftest.py b/tests/conftest.py index 4241f355..68c34893 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -29,7 +29,8 @@ def generate_page(page_size=20): results.append( SearchResult( id=fake.unique.name(), - result_type=choice((ResultType.DATA_PRODUCT, ResultType.TABLE)), + result_type=choice( + (ResultType.DATA_PRODUCT, ResultType.TABLE)), name=fake.name(), description=fake.paragraphs(), ) @@ -83,7 +84,8 @@ def mock_search_response(mock_catalogue, total_results=0, page_results=()): def mock_search_facets_response(mock_catalogue, domains): - mock_catalogue.search_facets.return_value = SearchFacets({"domains": domains}) + mock_catalogue.search_facets.return_value = SearchFacets( + {"domains": domains}) @pytest.fixture