Skip to content

Commit c48b70a

Browse files
authored
Fix test_list_spaces_linked in CI (#3549)
1 parent 45e1474 commit c48b70a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_hf_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,15 +2360,13 @@ def test_list_spaces_with_datasets(self):
23602360
assert "wikipedia" in spaces[0].datasets
23612361

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

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

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

23732371
def test_list_spaces_expand_author(self):
23742372
# Only the selected field is returned

0 commit comments

Comments
 (0)