-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Datasets): rename uploadUrl mutation to refer to datasets
- Loading branch information
Showing
4 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,7 +378,7 @@ def test_create_duplicate(self): | |
dataset.create_version(principal=superuser, name="Version 1") | ||
|
||
@mock_gcp_storage | ||
def test_genarate_upload_url(self): | ||
def test_generate_upload_url(self): | ||
superuser = self.create_user("[email protected]", is_superuser=True) | ||
workspace = self.create_workspace( | ||
superuser, | ||
|
@@ -392,8 +392,8 @@ def test_genarate_upload_url(self): | |
self.client.force_login(superuser) | ||
r = self.run_query( | ||
""" | ||
mutation generateUploadUrl ($input: GenerateUploadUrlInput!) { | ||
generateUploadUrl(input: $input) { | ||
mutation generateDatasetUploadUrl ($input: GenerateDatasetUploadUrlInput!) { | ||
generateDatasetUploadUrl(input: $input) { | ||
uploadUrl | ||
success | ||
errors | ||
|
@@ -409,7 +409,7 @@ def test_genarate_upload_url(self): | |
}, | ||
) | ||
self.assertEqual( | ||
r["data"]["generateUploadUrl"], | ||
r["data"]["generateDatasetUploadUrl"], | ||
{ | ||
"uploadUrl": f"http://signed-url/{str(dataset.id)}/{str(dataset_version.id)}/uri_file.csv", | ||
"success": True, | ||
|