File tree 5 files changed +13
-8
lines changed
5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
.eggs
5
5
.tox
6
+ .coverage *
6
7
.pytest_cache
7
8
.idea
8
9
Original file line number Diff line number Diff line change 80
80
81
81
82
82
def strip_margin (text ):
83
- return re .sub ('\n [ \t ]*\|' , '\n ' , text )
83
+ return re .sub (r '\n[ \t]*\|' , '\n ' , text )
84
84
85
85
86
86
def main (args = None ):
Original file line number Diff line number Diff line change @@ -172,11 +172,11 @@ def test_put_older_should_fail(self):
172
172
self .client .get_stream ('/older.txt@1' )
173
173
174
174
def test_get_nonexistent_should_404 (self ):
175
- with self .assertRaisesRegexp (FiletrackerError , "404" ):
175
+ with self .assertRaisesRegex (FiletrackerError , "404" ):
176
176
self .client .get_stream ('/nonexistent.txt' )
177
177
178
178
def test_delete_nonexistent_should_404 (self ):
179
- with self .assertRaisesRegexp (FiletrackerError , "404" ):
179
+ with self .assertRaisesRegex (FiletrackerError , "404" ):
180
180
self .client .delete_file ('/nonexistent.txt' )
181
181
182
182
def test_delete_should_remove_file_and_dir (self ):
@@ -197,7 +197,7 @@ def test_delete_should_remove_file_and_dir(self):
197
197
),
198
198
)
199
199
200
- with self .assertRaisesRegexp (FiletrackerError , "404" ):
200
+ with self .assertRaisesRegex (FiletrackerError , "404" ):
201
201
self .client .get_stream ('/dir/del.txt' )
202
202
203
203
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def test_file_version_should_return_version_from_fallback(self):
118
118
)
119
119
120
120
def test_file_version_of_not_existent_file_should_return_404 (self ):
121
- with self .assertRaisesRegexp (FiletrackerError , "404" ):
121
+ with self .assertRaisesRegex (FiletrackerError , "404" ):
122
122
self .client .get_stream ('/nonexistent.txt' )
123
123
124
124
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist =py27,py37
2
+ envlist = py38,py39
3
3
4
4
[testenv]
5
- deps =pytest
6
- pytest-cov
5
+ extras = server
6
+ deps = pytest
7
+ pytest-cov
8
+ setenv =
9
+ # Needed for systems with an AGPL-licensed Berkeley DB
10
+ YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION = 1
7
11
commands = pytest --cov =./ {posargs}
You can’t perform that action at this time.
0 commit comments