Skip to content

Commit

Permalink
Attempt to add 429 logic to retry after a certain number of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Dec 13, 2023
1 parent 5c6bc87 commit 5c292b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/hdx/api/test_configuration.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Configuration Tests"""
from os.path import join

import ckanapi
import pytest

from hdx.api import __version__
from hdx.api.configuration import Configuration, ConfigurationError
from hdx.api.remotehdx import RemoteHDX
from hdx.utilities.loader import LoadError
from hdx.utilities.useragent import UserAgentError

Expand Down Expand Up @@ -838,12 +838,12 @@ def test_remoteckan_validlocations(self, project_config_yaml):
hdx_base_config_dict={},
project_config_yaml=project_config_yaml,
)
remoteckan = ckanapi.RemoteCKAN(
remoteckan = RemoteHDX(
"http://lalala", apikey="12345", user_agent="HDXPythonLibrary/1.0"
)
Configuration.read().setup_session_remoteckan(remoteckan=remoteckan)
assert Configuration.read().remoteckan() == remoteckan
remoteckan = ckanapi.RemoteCKAN(
remoteckan = RemoteHDX(
"http://hahaha", apikey="54321", user_agent="HDXPythonLibrary/0.5"
)
Configuration._create(
Expand Down

0 comments on commit 5c292b3

Please sign in to comment.