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

remove httptest2 API mocking infrastructure #67

Merged
merged 4 commits into from
Dec 12, 2023
Merged

remove httptest2 API mocking infrastructure #67

merged 4 commits into from
Dec 12, 2023

Conversation

Aariq
Copy link
Member

@Aariq Aariq commented Dec 11, 2023

I initially used httptest2 to make tests more robust and not rely on a live API to pass. However, with the date and time specific messages introduced in #62, these mocks became less useful for many tests. Ultimately, I think it is simpler to not worry about mocking API requests and just skip tests when the API is down and on CRAN (should azmet eventually be submitted to CRAN). API mocking is more important when you have zero control over what the API does, but that's not the case for azmetr.

I discovered some timezone issues along the way also.

@Aariq Aariq merged commit e6ca1ae into main Dec 12, 2023
7 checks passed
@Aariq Aariq deleted the remove-httptest2 branch December 12, 2023 00:45
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.

1 participant