mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
Fix lint errors
This commit is contained in:
@@ -65,18 +65,18 @@ def test_missing_matcher():
|
||||
def test_dont_record_on_exception(tmpdir):
|
||||
my_vcr = vcr.VCR(record_on_exception=False)
|
||||
|
||||
@my_vcr.use_cassette(str(tmpdir.join('dontsave.yml')))
|
||||
@my_vcr.use_cassette(str(tmpdir.join("dontsave.yml")))
|
||||
def some_test():
|
||||
assert b'Not in content' in urlopen('http://httpbin.org/get')
|
||||
assert b"Not in content" in urlopen("http://httpbin.org/get")
|
||||
|
||||
with pytest.raises(AssertionError):
|
||||
some_test()
|
||||
|
||||
assert not os.path.exists(str(tmpdir.join('dontsave.yml')))
|
||||
assert not os.path.exists(str(tmpdir.join("dontsave.yml")))
|
||||
|
||||
# Make sure context decorator has the same behavior
|
||||
with pytest.raises(AssertionError):
|
||||
with my_vcr.use_cassette(str(tmpdir.join('dontsave2.yml'))):
|
||||
assert b'Not in content' in urlopen('http://httpbin.org/get').read()
|
||||
with my_vcr.use_cassette(str(tmpdir.join("dontsave2.yml"))):
|
||||
assert b"Not in content" in urlopen("http://httpbin.org/get").read()
|
||||
|
||||
assert not os.path.exists(str(tmpdir.join('dontsave2.yml')))
|
||||
assert not os.path.exists(str(tmpdir.join("dontsave2.yml")))
|
||||
|
||||
Reference in New Issue
Block a user