Title: Fix flaky upload tests. by NorberMV · Pull Request #313 · shotgunsoftware/python-api · GitHub
Open Graph Title: Fix flaky upload tests. by NorberMV · Pull Request #313 · shotgunsoftware/python-api
X Title: Fix flaky upload tests. by NorberMV · Pull Request #313 · shotgunsoftware/python-api
Description: This PR fixes flaky tests that contain the following errors: - AssertionError: 'image/png' != 'image/jpeg' - AssertionError: '304' != '200' Allows upload requests with status '304' in the thumbnail upload tests, because sometimes when the response hasn't been modified, this status informs the client that the response has not changed, so the client can continue using the same cached version. Also supports transient placeholder PNG file content types in the response payload, since sometimes it takes longer for the previously uploaded image requested to be available from media storage, and we have previously tested that the image was successfully uploaded.
Open Graph Description: This PR fixes flaky tests that contain the following errors: - AssertionError: 'image/png' != 'image/jpeg' - AssertionError: '304' != '200' Allows upload requests w...
X Description: This PR fixes flaky tests that contain the following errors: - AssertionError: 'image/png' != 'image/jpeg' - AssertionError: '304' != '200&am...
Opengraph URL: https://github.com/shotgunsoftware/python-api/pull/313
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:16429c8b-8ed3-5952-d52a-f3d23f17dd60 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C57C:73CFA:3AE64B:51816A:6A511C52 |
| html-safe-nonce | d0bc17439db009b0220d4743d3bfa86f424ed258e4e5476695111d2309afff78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTdDOjczQ0ZBOjNBRTY0Qjo1MTgxNkE6NkE1MTFDNTIiLCJ2aXNpdG9yX2lkIjoiODM2MjY3NTkwNzI0Njg4OTc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c8c8ebd2d58a06a9b671a31cb344905032ab77fbb3397464ea0adde779e7ac65 |
| hovercard-subject-tag | pull_request:1573859619 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/shotgunsoftware/python-api/pull/313/files |
| twitter:image | https://avatars.githubusercontent.com/u/42726133?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/42726133?s=400&v=4 |
| og:image:alt | This PR fixes flaky tests that contain the following errors: - AssertionError: 'image/png' != 'image/jpeg' - AssertionError: '304' != '200' Allows upload requests w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0f0f3a40c5b69803a8255a8e44323880bf9c4db54d5c076f2130bedf2a1dde5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/shotgunsoftware/python-api git https://github.com/shotgunsoftware/python-api.git |
| octolytics-dimension-user_id | 317894 |
| octolytics-dimension-user_login | shotgunsoftware |
| octolytics-dimension-repository_id | 748742 |
| octolytics-dimension-repository_nwo | shotgunsoftware/python-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 748742 |
| octolytics-dimension-repository_network_root_nwo | shotgunsoftware/python-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44909533816f7f99ff04e7a0fe692733af67ed84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width