Skip to content

Commit

Permalink
Commit changes made by code formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 14, 2024
1 parent 5218229 commit be44830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be44830

Please sign in to comment.