Commit a2cac1e0 authored by Bruno Duyé's avatar Bruno Duyé

Remove unused vcr

parent 6e789818
Pipeline #87232 passed with stage
in 36 seconds
......@@ -29,8 +29,6 @@ import os
import urllib.parse
from urllib.parse import urljoin
import vcr
import pandas as pd
import requests
......@@ -43,13 +41,6 @@ editor_apply_endpoint_nb_series_per_post = 100
log = logging.getLogger(__name__)
my_vcr = vcr.VCR(
cassette_library_dir='fixtures/cassettes',
record_mode='once',
decode_compressed_response=True,
)
class TooManySeries(Exception):
def __init__(self, num_found, max_nb_series):
self.num_found = num_found
......@@ -385,7 +376,6 @@ def iter_series(api_link, max_nb_series=None):
total_nb_series = 0
while True:
# with vcr.use_cassette('tests/cassettes/test_fetch_series_without_dimensions_values_labels.yaml'):
response_json = fetch_series_page(api_link, offset=total_nb_series)
errors = response_json.get("errors")
......@@ -510,4 +500,3 @@ def grouper(n, iterable):
def without_keys(d, keys):
return {k: v for k, v in d.items() if k not in keys}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment