Skip to content

Search with empty query returns empty results instead of all profiles #9#79

Open
Kirubapanneers wants to merge 1 commit intoanxkhn:mainfrom
Kirubapanneers:fix/search-empty-query
Open

Search with empty query returns empty results instead of all profiles #9#79
Kirubapanneers wants to merge 1 commit intoanxkhn:mainfrom
Kirubapanneers:fix/search-empty-query

Conversation

@Kirubapanneers
Copy link
Copy Markdown

Fixes #9

Changes

Updated '/health to return 200 instead of 201
Modified 'create_profile' to return "name" as expected by tests
Fixed 'get_profile' to return "username"
Updated 'search_profiles()' to return all profiles when query is empty

Testing

Ran full test suite with 'python -m pytest -v'
All 9 tests pass
'test_search_empty_query' now passes

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.

Search with empty query returns empty results instead of all profiles

1 participant