Skip to content

Commit cf4ed4c

Browse files
committed
tests: for py39, updated call from vcr (decode compressed response)
1 parent 023ec2c commit cf4ed4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_comcat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,11 @@ def test_moment_supplement():
146146
get_tensors='preferred')
147147
assert edict['us_Mww_percent_double_couple'] == 0.9992
148148

149+
149150
def test_detail():
150151
datadir = get_datadir()
151152
tape_file = os.path.join(datadir, 'vcr_detail.yaml')
152-
with vcr.use_cassette(tape_file, record_mode="none"):
153+
with vcr.use_cassette(tape_file, record_mode="none", decode_compressed_response=True):
153154
eventid = 'ci3144585' # northridge
154155
url = f'https://earthquake.usgs.gov/earthquakes/feed/v1.0/detail/{eventid}.geojson'
155156
event = DetailEvent(url)

0 commit comments

Comments
 (0)