Skip to content

Commit

Permalink
fixed remaining of the tests by adding create_repo
Browse files Browse the repository at this point in the history
  • Loading branch information
merveenoyan committed Jul 21, 2022
1 parent da18a5a commit 17deae2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ def test_clone_with_endpoint(self):

@retry_endpoint
def test_clone_with_repo_name_and_org(self):
self._api.create_repo(
token=self._token,
repo_id=f"valid_org/{self.REPO_NAME}",
repo_type="dataset",
)
clone = Repository(
f"{WORKING_REPO_DIR}/{self.REPO_NAME}",
clone_from=f"valid_org/{self.REPO_NAME}",
Expand Down Expand Up @@ -1714,6 +1719,11 @@ def test_clone_with_endpoint(self):

@retry_endpoint
def test_clone_with_repo_name_and_org(self):
self._api.create_repo(
token=self._token,
repo_id=f"valid_org/{self.REPO_NAME}",
repo_type="dataset",
)
clone = Repository(
f"{WORKING_DATASET_DIR}/{self.REPO_NAME}",
clone_from=f"valid_org/{self.REPO_NAME}",
Expand Down

0 comments on commit 17deae2

Please sign in to comment.