Skip to content

Commit

Permalink
Update tests for Map Maker API
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 27, 2023
1 parent c42deef commit 92d6441
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ jobs:
AV_API_KEY: ${{secrets.alpha_vantage_key}}
OWM_KEY: ${{secrets.open_weather_map_key}}
GENERIC_CONTROLLER_CONFIG: ${{secrets.generic_controller_config}}

- name: Test Client
run: |
pytest tests/test_client.py --doctest-modules --junitxml=tests/client-test-results.xml
env:
MAP_MAKER_KEY: ${{secrets.map_maker_key}}

- name: Test Cached API
run: |
pytest tests/test_cached_api.py --doctest-modules --junitxml=tests/cached-api-test-results.xml
Expand Down Expand Up @@ -81,13 +88,13 @@ jobs:
- name: Test Map Maker API
run: |
pytest tests/test_map_maker_api.py --doctest-modules --junitxml=tests/map-maker-api-test-results.xml
env:
MAP_MAKER_KEY: ${{secrets.map_maker_key}}
- name: Upload Map Maker API test results
uses: actions/upload-artifact@v2
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
1 change: 1 addition & 0 deletions neon_api_proxy/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __str__(self):
ALPHA_VANTAGE = "alpha_vantage"
OPEN_WEATHER_MAP = "open_weather_map"
WOLFRAM_ALPHA = "wolfram_alpha"
MAP_MAKER = "map_maker"
FINANCIAL_MODELING_PREP = "financial_modeling_prep"
NOT_IMPLEMENTED = "not_implemented"
TEST_API = "api_test_endpoint"
Expand Down

0 comments on commit 92d6441

Please sign in to comment.