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

Add hugie ui command (Fixes #30) #70

Merged
merged 5 commits into from
Jul 25, 2023
Merged

Add hugie ui command (Fixes #30) #70

merged 5 commits into from
Jul 25, 2023

Conversation

ivyleavedtoadflax
Copy link
Contributor

@ivyleavedtoadflax ivyleavedtoadflax commented Jul 22, 2023

Description

Resolves #'30 by adding the hugie ui command which opens the Hugging Face Inference Endpoints dashboard in a browser.

This may be the killer function for this tool 😬

Checklist

  • Tests added
  • Relevant issue mentioned
  • Documentation updated

@ivyleavedtoadflax ivyleavedtoadflax self-assigned this Jul 22, 2023
@ivyleavedtoadflax ivyleavedtoadflax changed the title Add hugie ui command Add hugie ui command (Resolves #30) Jul 22, 2023
@ivyleavedtoadflax ivyleavedtoadflax changed the title Add hugie ui command (Resolves #30) Add hugie ui command (Fixes #30) Jul 22, 2023
Copy link
Contributor

@nsorros nsorros left a comment

Choose a reason for hiding this comment

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

Looks good, a test would also be good

@ivyleavedtoadflax
Copy link
Contributor Author

Looks good, a test would also be good

hard to test because it requires opening a browser, not sure it is worth mocking

@nsorros
Copy link
Contributor

nsorros commented Jul 24, 2023

Looks good, a test would also be good

hard to test because it requires opening a browser, not sure it is worth mocking

you want to mock that webbrowser.open is called with url and want to ensure the command works despite of changes you make



def test_ui_command(monkeypatch):
def mock_open(url):
Copy link
Contributor

Choose a reason for hiding this comment

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

@ivyleavedtoadflax ivyleavedtoadflax merged commit a5becb3 into main Jul 25, 2023
1 check passed
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.

2 participants