Skip to content

Commit

Permalink
Empty commit
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquesebastiao committed Jan 23, 2024
1 parent 0f81bf3 commit 55ce137
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion skyport/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions tests/test_apod.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 55ce137

Please sign in to comment.