Skip to content

Commit

Permalink
Updated Saved Search unit tests, test_list_saved_searches_by_global_v…
Browse files Browse the repository at this point in the history
…iew_returns_none in passing state
  • Loading branch information
chrtorres committed Nov 15, 2024
1 parent de3157b commit 6c6c129
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/src/xfd_django/xfd_api/tests/test_saved_searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_create_saved_search_by_user():
"filters": [],
},
)
print(response.json()) # Print the response content for debugging
assert response.status_code == 200
data = response.json()
assert data["name"] == name
Expand Down Expand Up @@ -232,7 +231,6 @@ def test_delete_saved_search_by_user_without_access_fails():

@pytest.mark.django_db(transaction=True)
def test_list_saved_searches_by_global_view_returns_none():
# pass
user = User.objects.create(
firstName="",
lastName="",
Expand All @@ -254,7 +252,6 @@ def test_list_saved_searches_by_global_view_returns_none():
"/saved-searches",
headers={"Authorization": "Bearer " + create_jwt_token(user)},
)
print(response.json()) # Print the response content for debugging
assert response.status_code == 200
assert len(response.json()) == 0

Expand Down

0 comments on commit 6c6c129

Please sign in to comment.