Skip to content

Use epidata client in covidcast integration tests + fix csv format bug + fix fields param bug #1091

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 4 commits into from
Feb 21, 2023

Conversation

minhkhul
Copy link
Contributor

@minhkhul minhkhul commented Feb 21, 2023

  • Use epidata client in covidcast integration tests
  • fix format = csv bug
  • fix fields param bug

fix #67

@minhkhul minhkhul requested a review from krivard February 21, 2023 21:50
@minhkhul minhkhul changed the title Issue67 Use epidata client in covidcast integration tests + fix format = csv bug + fix fields param bug Feb 21, 2023
@minhkhul minhkhul changed the title Use epidata client in covidcast integration tests + fix format = csv bug + fix fields param bug Use epidata client in covidcast integration tests + fix csv format bug + fix fields param bug Feb 21, 2023
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

👍 Solid choices!

@@ -194,7 +193,7 @@ def test_fields(self):
row = self._insert_placeholder_set_one()

# limit fields
response = self.request_based_on_row(row, fields='time_value,geo_value')
response = self.request_based_on_row(row, **{"fields":"time_value,geo_value"})
Copy link
Contributor

Choose a reason for hiding this comment

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

question: did you ever figure out why the **{} is needed?

it's fine this way, just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both ways work now. I choose to keep it like this to be consistent with how extra arguments are added in other test functions, but having it as fields='time_value,geo_value' also works.

@minhkhul minhkhul merged commit 4e64d16 into dev Feb 21, 2023
@minhkhul minhkhul deleted the Issue67 branch February 21, 2023 22:38
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.

use epidata client in covidcast integration tests
2 participants