File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Here's a noddy test case that shows it working:
25
25
``` python
26
26
def test_git_repo (git_repo ):
27
27
# The fixture derives from `workspace` in `pytest-shutil`, so they contain
28
- # a handle to the path.py path object (see https://pathpy .readthedocs.io/)
28
+ # a handle to the path ` path` object (see https://path .readthedocs.io/)
29
29
path = git_repo.workspace
30
30
file = path / ' hello.txt'
31
31
file .write_text(' hello world!' )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Here's a noddy test case showing the main functionality:
51
51
# POST a document to the server.
52
52
assert pyramid_server.post(' /login' , ' guest:password123' ).response_code == 200
53
53
54
- # ``path.py `` path object to the running config file
54
+ # path ``path`` object to the running config file (see https://path.readthedocs.io/)
55
55
assert pyramid_server.working_config.endswith(' testing.ini' )
56
56
```
57
57
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ All test fixtures share the following properties at runtime:
115
115
| ` hostname ` | Hostname that server is listening on
116
116
| ` port ` | Port number that the server is listening on
117
117
| ` dead ` | True/False: am I dead yet?
118
- | ` workspace ` | ` path.py ` object for the temporary directory the server is running out of
118
+ | ` workspace ` | [ ` path ` ] ( https://path.readthedocs.io/ ) object for the temporary directory the server is running out of
119
119
120
120
## MongoDB
121
121
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ The workspace fixture is simply a temporary directory at function-scope with a f
23
23
pytest_plugins = [' pytest_shutil' ]
24
24
25
25
def test_something (workspace ):
26
- # Workspaces contain a handle to the path.py path object (see https://pathpy .readthedocs.io/)
26
+ # Workspaces contain a handle to the path ` path` object (see https://path .readthedocs.io/)
27
27
path = workspace.workspace
28
28
script = path / ' hello.sh'
29
29
script.write_text(' #!/bin/sh\n echo hello world!' )
Original file line number Diff line number Diff line change 25
25
'execnet' ,
26
26
'contextlib2;python_version<"3"' ,
27
27
'pytest' ,
28
- 'path.py' ,
28
+ 'path; python_version >= "3.5"' ,
29
+ 'path .py ; python_version < "3.5" ,
29
30
'mock' ,
30
31
'termcolor'
31
32
]
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Here's a noddy test case that shows it working:
24
24
``` python
25
25
def test_svn_repo (svn_repo ):
26
26
# The fixture derives from `workspace` in `pytest-shutil`, so they contain
27
- # a handle to the path.py path object (see https://pathpy.readthedocs.io/)
27
+ # a handle to the path ` path` object (see https://pathpy.readthedocs.io/)
28
28
path = svn_repo.workspace
29
29
file = path / ' hello.txt'
30
30
file .write_text(' hello world!' )
You can’t perform that action at this time.
0 commit comments