Falcon v3.1.1-b3 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this test 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses events via SSE or WebSockets. • ...And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses upload events via SSE or WebSockets. …And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 540 页 | 476.60 KB | 1 年前3
Falcon v3.1.1-rc1 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses upload events via SSE or WebSockets. …And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 540 页 | 476.61 KB | 1 年前3
Falcon v3.1.0 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses upload events via SSE or WebSockets. …And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 537 页 | 474.34 KB | 1 年前3
Falcon v3.1.1-b3 Documentationresponse.status == falcon.HTTP_CREATED assert call().write(fake_image_bytes) in mock_file_open.mock_calls assert response.headers['location'] == '/images/{}.png'.format(fake_uuid) As you can see, this 'image/png') == fake_uuid + '.png' assert call().write(fake_image_bytes) in mock_file_open.mock_calls Now give it a try: $ pytest tests -k test_saving_image Like the former test, this one still uses upload events via SSE or WebSockets. …And much more (patches welcome, as they say)! Compared to the sync version, asynchronous code can at times be harder to design and reason about. Should you run into0 码力 | 540 页 | 476.61 KB | 1 年前3
共 67 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













