Skip to content

Commit

Permalink
fix result type in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Feb 26, 2024
1 parent e94bb03 commit 861c1a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion home/forms/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def get_domain_choices() -> list[tuple[str, str]]:
"""Make API call to obtain domain choices"""
# TODO: pull in the domains from the catalogue client
# facets = client.search_facets()
# domain_list = facets.options("domain")
# domain_list = facets.options("domains")
return [
("", "All Domains"),
("urn:li:domain:HMCTS", "HMCTS"),
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def generate_page(page_size=20, result_type: ResultType = None):
results.append(
SearchResult(
id=fake.unique.name(),
result_type=choice((ResultType.DATA_PRODUCT, ResultType.TABLE)),
result_type=(
choice((ResultType.DATA_PRODUCT, ResultType.TABLE))
if result_type is None
Expand Down

0 comments on commit 861c1a1

Please sign in to comment.