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

tests WIP #26

Merged
merged 22 commits into from
Mar 1, 2022
Merged

tests WIP #26

merged 22 commits into from
Mar 1, 2022

Conversation

mike0sv
Copy link
Contributor

@mike0sv mike0sv commented Feb 21, 2022

close #27
close #3
close #9

@mike0sv mike0sv self-assigned this Feb 21, 2022
@aguschin
Copy link
Contributor

@mike0sv, do we need something else right now in terms of tests?

gto/__init__.py Outdated Show resolved Hide resolved
gto/api.py Outdated
from gto.registry import GitRegistry


def show(repo: str, dataframe: bool = False):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suggest to use consistent naming for different types. E.g for variable repo I expect Repo type. For strings it could be smth like repo_path. But in this case it could be Union for easy re-use of existing Repo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

btw, maybe we can make this a method and api method will only create registry if needed and call this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same goes for other methods

Copy link
Contributor

@aguschin aguschin Feb 28, 2022

Choose a reason for hiding this comment

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

But in this case it could be Union for easy re-use of existing Repo

Done

btw, maybe we can make this a method and api method will only create registry if needed and call this method?

Not sure it's better to have it in registry, the logic is pretty much about some data formatting. Better to decouple IMO.

gto/registry.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
@aguschin aguschin merged commit 854eb4b into main Mar 1, 2022
@aguschin aguschin deleted the feature/tests branch March 1, 2022 12:08
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.

Add API Add CI Add proper tests
2 participants