From 55ce1372c26d1b654440c4d5cf75ee863ff7490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Sebasti=C3=A3o?= Date: Mon, 22 Jan 2024 22:05:13 -0400 Subject: [PATCH] Empty commit --- pyproject.toml | 2 +- skyport/cli.py | 2 +- tests/test_apod.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eb20eb2..1788181 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ lint = "ruff . && blue --check . --diff && isort --check --diff ." format = "blue . && isort ." doc = "mkdocs serve" pre_test = "task lint" -test = "pytest -x --cov=skyport -vv" +test = "pytest -s -x --cov=skyport -vv" post_test = "coverage run -m pytest && coverage html" pre-commit = "task lint && pytest -x --cov=skyport -vv && coverage run -m pytest && coverage html" build = "poetry build" diff --git a/skyport/cli.py b/skyport/cli.py index 4ef5626..42a81d6 100644 --- a/skyport/cli.py +++ b/skyport/cli.py @@ -15,7 +15,7 @@ # Settings for consuming Nasa API HOST = 'https://api.nasa.gov/' -NASA_API_KEY = os.getenv('NASA_API_KEY', 'DEMO_KEY') +NASA_API_KEY = os.getenv('NASAAPI_KEY', 'DEMO_KEY') date_now = datetime.now().date().isoformat() app = typer.Typer( diff --git a/tests/test_apod.py b/tests/test_apod.py index 2d430b7..e47d71a 100644 --- a/tests/test_apod.py +++ b/tests/test_apod.py @@ -1,10 +1,12 @@ import os +from os import getenv from .test_base import CliUnitTest, check_result_error class ApodTest(CliUnitTest): def test_return_with_remaining_option_of_apod(self): + print('\n' + '>>>>> ' + getenv('NASA_API_KEY')) result = self.invoke('apod', '-r') if result.exit_code == 0: self.assertIn('Remain', result.output)