Skip to content

Remove dependency on cache files from GHT tests #444

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

Merged
merged 8 commits into from
Nov 10, 2020
Merged

Conversation

jingjtang
Copy link
Contributor

@jingjtang jingjtang commented Nov 6, 2020

Fixes #213

  • Remove dependency on cache files from the unit tests
  • Remove dependency on internet/ght-key from the unit tests
  • Delete cache files

The unit tests coverage is good for all of the scrips except for pull_api.py since a large proportion of the code in that script requires ght-key to pull data from the Google Health Trends API. Currently, didn't find a good way to test those functions.


def test_class_state(self):

# TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the Github issue here and to the other TODOs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I wasn't clearer on this. You should create a github issue called something like "Get the ght tests to work without authentication" and explain a bit more in the description. Then, in the commented out tests you should leave a comment that says "TODO(#XXX): reenable these tests" where XXX is the number of the issue you created.

@krivard krivard merged commit df4f57a into main Nov 10, 2020
@krivard krivard deleted the fix-ght-unittests branch November 10, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dependency on cache files from GHT tests
3 participants