Skip to content

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Dec 29, 2019

Related to #2896

  • ❗ Have you followed the guidelines in the Contributing to DVC list?

  • πŸ“– Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.

  • ❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@efiop efiop changed the title tests: func: convert test_get.py test_utils.py to new fixtures [WIP] tests: func: convert test_get.py test_utils.py to new fixtures Dec 29, 2019
@efiop efiop changed the title [WIP] tests: func: convert test_get.py test_utils.py to new fixtures tests: func: convert test_get.py test_utils.py to new fixtures Dec 29, 2019
@efiop
Copy link
Contributor Author

efiop commented Dec 29, 2019

Accidentally converted test_utils along the way, hope you guys don't mind πŸ™‚

@efiop efiop requested review from a user, Suor and pared December 30, 2019 02:09
Copy link
Contributor

@Suor Suor left a comment

Choose a reason for hiding this comment

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

Small things )

@efiop efiop force-pushed the test branch 3 times, most recently from 532b47e to b47a0c1 Compare December 30, 2019 07:15
Repo.get(fspath(erepo_dir), src, dst)

assert (tmp_dir / dst).is_file()
# NOTE: using strip() to account for `echo` differences on win and *nix
Copy link
Contributor

Choose a reason for hiding this comment

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

πŸ‘

@pared
Copy link
Contributor

pared commented Dec 30, 2019

Just a question: did we ever come to some agreement about using string literals vs variables in tests? What I mean is that in test_import and test_get we sometimes start tests with defining src and dst. As I recall some conversation with @Suor we agreed to use strings, but I cannot find a particular issue/pr.
What do you think @efiop?

Besides that minor thing it's:+1: from me.

[EDIT]
Suggestions about using literals can be found here

@efiop efiop merged commit 2180811 into iterative:master Dec 30, 2019
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.

3 participants