We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517f099 commit 3133f4eCopy full SHA for 3133f4e
codelabs/flex_and_vision/main_test.py
@@ -12,6 +12,8 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import uuid
16
+
17
import pytest
18
import requests
19
import six
@@ -37,11 +39,12 @@ def test_index(app):
37
39
38
40
def test_upload_photo(app):
41
test_photo_data = requests.get(TEST_PHOTO_URL).content
42
+ test_photo_filename = 'flex_and_vision_{}.jpg'.format(uuid.uuid4().hex)
43
44
r = app.post(
45
'/upload_photo',
46
data={
- 'file': (six.BytesIO(test_photo_data), 'flex_and_vision.jpg')
47
+ 'file': (six.BytesIO(test_photo_data), test_photo_filename)
48
}
49
)
50
0 commit comments