Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dbnomics
dbnomics-python-client
Commits
a2cac1e0
Commit
a2cac1e0
authored
Sep 11, 2019
by
Bruno Duyé
Browse files
Remove unused vcr
parent
6e789818
Pipeline
#87232
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dbnomics/__init__.py
View file @
a2cac1e0
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment