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 d815e63 commit ccb6a38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_apod.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import os
from os import getenv
from pprint import pprint

import requests

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'))
response = requests.get('https://api.nasa.gov/planetary/apod?api_key=' + getenv('NASA_API_KEY'))
pprint(response.json())
pprint(response.headers)
result = self.invoke('apod', '-r')
if result.exit_code == 0:
self.assertIn('Remain', result.output)
Expand Down

0 comments on commit ccb6a38

Please sign in to comment.