Falcon v3.0.0 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.1.1-b3 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest. mock: from unittest.mock import mock_open, call Now add the following test: # "monkeypatch" mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. Also, don’t be shy about pulling up Falcon’s source0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v1.4.1 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock if you are using Python 3, or from mock if you are using Python 2. # Python 3 mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. 5.1. User Guide 39 Falcon Documentation, Release0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentationapplicable. Let’s start by adding an additional import statement to test_app.py. We need to import two modules from unittest.mock if you are using Python 3, or from mock if you are using Python 2. # Python 3 mocks, but they are more localized and do not # have to be monkey-patched into standard library modules (always a # risky business). mock_file_open = mock_open() fake_uuid = '123e4567-e89b-12d3-a456-426655440000' Falcon’s docstrings are quite extensive, and so you can learn a lot just by poking around Falcon’s modules from a Python REPL, such as IPython or bpython. 5.1. User Guide 39 Falcon Documentation, Release0 码力 | 156 页 | 573.94 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













