Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfrey committed May 14, 2024
1 parent 7f6a480 commit c31ddc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/beignet/datasets/test__uniref_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@


class TestUnirefDataset:
@mock.patch("beignet.io.download_and_extract_archive", return_value=True)
def test_init(self, download_func):
@mock.patch("beignet.io._download.download_and_extract_archive", return_value=True)
@mock.patch("beignet.datasets.UniRef50Dataset.__init__", return_value=None)
def test_init(self, download_func, uniref_init):
dataset = UniRef50Dataset(root="/tmp/data", download=True)

assert download_func.called_once()
Expand Down

0 comments on commit c31ddc4

Please sign in to comment.