Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with FB schedule using invalid date #409

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

roclark
Copy link
Owner

@roclark roclark commented Apr 26, 2020

Using the current datetime could run into an issue for the football schedule tests if the date a test was run happened to be an actual date on the team's schedule would fail to throw a ValueError. Instead, a date that is known to not be on the team's schedule should be used to ensure
the tests can complete regardless of the date run.

Fixes #408

Signed-Off-By: Robert Clark robdclark@outlook.com

Using the current datetime could run into an issue for the football
schedule tests if the date a test was run happened to be an actual date
on the team's schedule would fail to throw a ValueError. Instead, a date
that is known to not be on the team's schedule should be used to ensure
the tests can complete regardless of the date run.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark added the bug Something isn't working label Apr 26, 2020
@roclark roclark added this to the Release 0.6.0 milestone Apr 26, 2020
@roclark roclark self-assigned this Apr 26, 2020
@codecov
Copy link

codecov bot commented Apr 26, 2020

Codecov Report

Merging #409 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #409   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          48       49    +1     
  Lines       10616    10631   +15     
=======================================
+ Hits        10613    10628   +15     
  Misses          3        3           
Impacted Files Coverage Δ
sportsreference/nba/nba_utils.py 100.00% <100.00%> (ø)
sportsreference/nba/teams.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b7b3f4...a6bf9b7. Read the comment docs.

@roclark roclark merged commit 02efff3 into master Apr 26, 2020
@roclark roclark deleted the fix-fb-no-game-scheduled-test branch April 26, 2020 01:15
roclark added a commit that referenced this pull request Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Football tests fail on date of scheduled game
1 participant