Skip to content

Conversation

@pared
Copy link
Contributor

@pared pared commented Dec 11, 2019

  • ❗ 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. πŸ™

@pared pared requested review from Suor and efiop December 11, 2019 12:32
@Suor
Copy link
Contributor

Suor commented Dec 11, 2019

Should not be moved to dir_helpers, should be moved to its usage place, i.e. somewhere in test_add.

@pared pared force-pushed the 2896_add_windows branch 2 times, most recently from 9047493 to 1a6eebf Compare December 11, 2019 12:58
Copy link
Contributor

Choose a reason for hiding this comment

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

-> tmp_path_factory

This aimed to replace tmpdir_factory, they have the migration of their own in pytest http://doc.pytest.org/en/latest/tmpdir.html#the-tmp-path-factory-fixture

@Suor
Copy link
Contributor

Suor commented Dec 16, 2019

@pared ?

ret = main(["config", "cache.dir", temporary_windows_drive])
assert ret == 0
dvc.config.set("cache", "dir", temporary_windows_drive)
dvc.cache = Cache(dvc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, still hacky. We might fix this, but since we only need this in tests, it is not worth the effort.

@efiop efiop merged commit f51c222 into iterative:master Dec 16, 2019
@pared pared deleted the 2896_add_windows branch December 17, 2019 13:12
@efiop efiop added refactoring Factoring and re-factoring testing Related to the tests and the testing infrastructure labels Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Factoring and re-factoring testing Related to the tests and the testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants