Skip to content

Conversation

@vinisalazar
Copy link
Contributor

@vinisalazar vinisalazar commented Jul 27, 2022

Hi,

this PR is in relation to #258.

I refactored tests to use the servers listed on the issue. I kept some tests as they are (in test_to_objects.py) and modified test_search_url_change_protocol in test_url_builder.py while there aren't any griddap datasets.

While working on test_to_objects.py, I ran into a problem with the to_xarray method. I wasn't able to read the NC dataset from memory, and detailed it in #261.

Thanks,
Vini

Summary of changes

  • Refactor tests to use gold standard ERDDAP servers
  • Modify dataset_id, constraints, and variables
  • Rewrite cassettes

  - Refactor test URLs
    - Change search string
  - Record new cassette
  - Refactor test URLs
    - Change dataset_id, constraints, and variables
  - "Turn off" griddap search for now
  - Record new cassettes
  - Refactor test URLs
  - Record new cassettes
  - Refactor test URLs
  - Create fixture 'servers'
  - Record new cassettes
This was referenced Jul 27, 2022
  - Modify dataset_id so correct error status will be raised (400, not 404)
  - Rewrite cassette
@ocefpaf ocefpaf merged commit fc44c01 into ioos:main Jul 28, 2022
@ocefpaf
Copy link
Member

ocefpaf commented Jul 28, 2022

@vinisalazar the vrc cassetes are quite noisy in the PRs. if we can, when updating them, let's try to commit squash all the previous commits and add them after so we have only 2 commits: code changes and cassette updates.

@vinisalazar
Copy link
Contributor Author

Sure, that makes sense, thanks for the feedback.

@vinisalazar vinisalazar deleted the tests branch July 28, 2022 13:16
@ocefpaf ocefpaf added the GSoC22 label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants