File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def test_check_valid_image_with_unaccepted_formats(self):
31
31
def test_upload_raises_upload_image_error (self ):
32
32
responses .add (
33
33
responses .POST ,
34
- f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } " f" &batch={ DEFAULT_BATCH_NAME } " ,
34
+ f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } &batch={ DEFAULT_BATCH_NAME } " ,
35
35
json = {
36
36
"error" : {
37
37
"message" : "Invalid image." ,
@@ -57,15 +57,15 @@ def test_upload_raises_upload_annotation_error(self):
57
57
# Image upload
58
58
responses .add (
59
59
responses .POST ,
60
- f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } " f" &batch={ DEFAULT_BATCH_NAME } " ,
60
+ f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } &batch={ DEFAULT_BATCH_NAME } " ,
61
61
json = {"success" : True , "id" : image_id },
62
62
status = 200 ,
63
63
)
64
64
65
65
# Annotation
66
66
responses .add (
67
67
responses .POST ,
68
- f"{ API_URL } /dataset/{ PROJECT_NAME } /annotate/{ image_id } ?api_key={ ROBOFLOW_API_KEY } " f" &name={ image_name } " ,
68
+ f"{ API_URL } /dataset/{ PROJECT_NAME } /annotate/{ image_id } ?api_key={ ROBOFLOW_API_KEY } &name={ image_name } " ,
69
69
json = {
70
70
"error" : {
71
71
"message" : "Image was already annotated." ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def test_project_methods(self):
47
47
# Upload image
48
48
responses .add (
49
49
responses .POST ,
50
- f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } " f" &batch={ DEFAULT_BATCH_NAME } " ,
50
+ f"{ API_URL } /dataset/{ PROJECT_NAME } /upload?api_key={ ROBOFLOW_API_KEY } &batch={ DEFAULT_BATCH_NAME } " ,
51
51
json = {"duplicate" : True , "id" : "hbALkCFdNr9rssgOUXug" },
52
52
status = 200 ,
53
53
)
You can’t perform that action at this time.
0 commit comments