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

Make tests more robust #271

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Conversation

yuvipanda
Copy link
Contributor

  • Don't require connection to the internet for api tests to run
    (I was just on a plane!). Instead, we use the helper classes
    used in test_gitpuller for making arbitrary temporary git repos
    in test_api as well
  • Don't specify hardcoded names when creating our test git repos -
    instead, create truly temporary directories.
  • Stop swallowing exceptions that might occur when trying to fetch
    list of tags / branches in a remote. Without this commit, we
    were swallowing the output of the git command itself

- Don't require connection to the internet for api tests to run
  (I was just on a plane!). Instead, we use the helper classes
  used in test_gitpuller for making arbitrary temporary git repos
  in test_api as well
- Don't specify hardcoded names when creating our test git repos -
  instead, create truly temporary directories.
- Stop swallowing exceptions that might occur when trying to fetch
  list of tags / branches in a remote. Without this commit, we
  were swallowing the output of the git command itself
@yuvipanda yuvipanda requested review from consideRatio, minrk, manics and betatim and removed request for consideRatio June 13, 2022 23:50
@consideRatio
Copy link
Member

This makes sense! It's great that you consider the helpfulness of error messages, it sure matters when it matters :)

Linkback to other issues regarding error messages:

@consideRatio consideRatio merged commit 7ce7827 into jupyterhub:main Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants