Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/test_hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2360,15 +2360,13 @@ def test_list_spaces_with_datasets(self):
assert "wikipedia" in spaces[0].datasets

def test_list_spaces_linked(self):
space_id = "stabilityai/stable-diffusion"
space_id = "enzostvs/deepsite"

spaces = [space for space in self._api.list_spaces(search=space_id) if space.id == space_id]
assert spaces[0].models is None
assert spaces[0].datasets is None

spaces = [space for space in self._api.list_spaces(search=space_id, linked=True) if space.id == space_id]
assert spaces[0].models is not None
assert spaces[0].datasets is not None

def test_list_spaces_expand_author(self):
# Only the selected field is returned
Expand Down
Loading