Daniel A. Wozniak
|
79dcb64917
Blacken changed files
|
4 gadi atpakaļ |
Daniel A. Wozniak
|
196fa56137
Blacken changed files
|
4 gadi atpakaļ |
Daniel A. Wozniak
|
6ab29e80f4
Blacken changed files
|
4 gadi atpakaļ |
Pablo Suárez Hernández
|
97735d727b
Fix pylint issues on unit tests
|
5 gadi atpakaļ |
Pablo Suárez Hernández
|
15f58db818
Move MockTimedProc implementation to tests.support.mock
|
5 gadi atpakaļ |
Blacken Salt
|
0b2a5613b3
Blacken salt
|
4 gadi atpakaļ |
Pedro Algarvio
|
ba94b4b878
By these days, we should blowup if mock is not available
|
5 gadi atpakaļ |
Erik Johnson
|
3b6356f4b0
Raise TypeError when trying to read from filehandles not opened for reading
|
6 gadi atpakaļ |
Erik Johnson
|
0e8c83bac6
2 MockFH enhancements:
|
6 gadi atpakaļ |
Erik Johnson
|
1cbe89feee
Implement tell() for filehandle iteration
|
6 gadi atpakaļ |
Erik Johnson
|
38df912fa6
Operate on a copy of the read_data
|
6 gadi atpakaļ |
Erik Johnson
|
67c036dc2d
Add MockCall to tests.support.mock to track calls
|
6 gadi atpakaļ |
Erik Johnson
|
fd9d700157
Add additional docs to MockOpen class
|
6 gadi atpakaļ |
Erik Johnson
|
fc0aa9934f
Track call_count in MockOpen
|
6 gadi atpakaļ |
Erik Johnson
|
51b3faa7b4
Add support for passing multiple strings for a given match in read_data
|
6 gadi atpakaļ |
Erik Johnson
|
f5823252bb
Track call args/kwargs in MockFH
|
6 gadi atpakaļ |
Erik Johnson
|
335591ca90
Mock the seek function in MockFH
|
6 gadi atpakaļ |
Erik Johnson
|
2be19cfa89
Report correct location when reading using explicit size and EOF reached
|
6 gadi atpakaļ |
Erik Johnson
|
5ec95ba5ca
On second thought, actually implement tell()
|
6 gadi atpakaļ |
Erik Johnson
|
19022eb9e5
Add tell mock to MockFH
|
6 gadi atpakaļ |
Erik Johnson
|
4e67955572
Replace the rest of mock_open with a class
|
6 gadi atpakaļ |
Erik Johnson
|
836fde9a30
Allow Python 2 to accept an exception as read_data
|
6 gadi atpakaļ |
Erik Johnson
|
543385fd02
Add writelines_calls property
|
6 gadi atpakaļ |
Erik Johnson
|
42fa842456
Make read funcs mocks so their calls can be tracked
|
6 gadi atpakaļ |
Erik Johnson
|
b9200dbc3e
add a dict containing the handles to the mock_open return object
|
6 gadi atpakaļ |
Erik Johnson
|
852ba4b982
Add mocked close() function to MockFH
|
6 gadi atpakaļ |
Erik Johnson
|
1861e9b944
mock_open: rewrite multi-file support
|
6 gadi atpakaļ |
Erik Johnson
|
5e6b539770
Use function for empty string
|
6 gadi atpakaļ |
Erik Johnson
|
5d09b178d7
Separate mocked file contents per filename, not glob
|
6 gadi atpakaļ |
Erik Johnson
|
875102f538
Modify mock_open to support multiple file paths
|
6 gadi atpakaļ |