Skip to content

Commit

Permalink
Update envvar handling in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 27, 2023
1 parent be7f55b commit c42deef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
WOLFRAM_ID: ${{secrets.wolfram_id}}
AV_API_KEY: ${{secrets.alpha_vantage_key}}
OWM_KEY: ${{secrets.open_weather_map_key}}
MAP_MAKER_KEY: ${{secrets.map_maker_key}}
GENERIC_CONTROLLER_CONFIG: ${{secrets.generic_controller_config}}
- name: Test Cached API
run: |
Expand Down Expand Up @@ -87,6 +86,8 @@ jobs:
with:
name: map-maker-api-test-results
path: tests/map-maker-api-test-results.xml
env:
MAP_MAKER_KEY: ${{secrets.map_maker_key}}

- name: Test Generic API
run: |
Expand Down
4 changes: 2 additions & 2 deletions neon_api_proxy/services/map_maker_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import urllib.parse

from datetime import timedelta
from os import getenv
from time import time, sleep

from requests import Response
from ovos_utils.log import LOG

from neon_api_proxy.cached_api import CachedAPI
from ovos_utils.log import LOG


class MapMakerAPI(CachedAPI):
Expand Down

0 comments on commit c42deef

Please sign in to comment.