Skip to content

Commit

Permalink
Merge pull request #45 from vn7n24fzkq/fix-run-coverage
Browse files Browse the repository at this point in the history
Fix run coverage
  • Loading branch information
JustinGOSSES committed Aug 10, 2020
2 parents 983420d + 94eef6d commit a434768
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion utility.py → apod/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _get_apod_chars(dt, thumbs):
props['media_type'] = media_type
if data:
props['url'] = _get_last_url(data)
props['date'] = dt.isoformat()
props['date'] = dt.strftime('%Y-%m-%d')

if hd_data:
props['hdurl'] = _get_last_url(hd_data)
Expand Down
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from random import shuffle
from flask import request, jsonify, render_template, Flask, current_app
from flask_cors import CORS
from utility import parse_apod, get_concepts
from apod.utility import parse_apod, get_concepts
import logging

#### added by justin for EB
Expand Down
2 changes: 1 addition & 1 deletion run_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Need to sort out why this is the only way nosetests seem
# to work right..
nosetests -v tests/apod/*
nosetests -v tests/*
2 changes: 1 addition & 1 deletion tests/apod/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TestApod(unittest.TestCase):
'newer page, Reprocessing & copyright' :
{
"datetime": datetime(2017, 2, 8),
"copyright": "Jesús M.Vargas & Maritxu Poyal",
"copyright": "Jes�s M.Vargas & Maritxu Poyal",
"date": "2017-02-08",
"explanation": "The bright clusters and nebulae of planet Earth's night sky are often named for flowers or insects. Though its wingspan covers over 3 light-years, NGC 6302 is no exception. With an estimated surface temperature of about 250,000 degrees C, the dying central star of this particular planetary nebula has become exceptionally hot, shining brightly in ultraviolet light but hidden from direct view by a dense torus of dust. This sharp close-up of the dying star's nebula was recorded by the Hubble Space Telescope and is presented here in reprocessed colors. Cutting across a bright cavity of ionized gas, the dust torus surrounding the central star is near the center of this view, almost edge-on to the line-of-sight. Molecular hydrogen has been detected in the hot star's dusty cosmic shroud. NGC 6302 lies about 4,000 light-years away in the arachnologically correct constellation of the Scorpion (Scorpius). Follow APOD on: Facebook, Google Plus, Instagram, or Twitter",
"hdurl": "https://apod.nasa.gov/apod/image/1702/Butterfly_HubbleVargas_5075.jpg",
Expand Down

0 comments on commit a434768

Please sign in to comment.