Vera Sativa
896b08c11d
fix: test requirements
2019-12-06 10:55:18 -03:00
Vera Sativa
b2e3fd2dbd
fix: test imports
2019-12-06 10:20:53 -03:00
pawel
551f5af561
add: test: convert to dir helpers
...
test_add_file_in_dir
test_readding_dir_should_not_unprotect_all
test_should_not_checkout_when_adding_cached_copy
2019-12-06 09:07:50 +01:00
Mr. Outis
bc2471cd30
tests: adjust scm_class schema
2019-12-05 19:56:45 -06:00
Vera and Ruslan Kuprieiev
4e53f17948
Update tests/unit/remote/test_remote_dir.py
...
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-12-05 17:41:17 -03:00
Dani Hodovic
7debaca22e
fixup! fix error message for git files
2019-12-05 21:05:38 +01:00
Dani Hodovic
9ae4ab88bf
fix error message for git files
2019-12-05 21:05:04 +01:00
Dani Hodovic
b17d1c5b04
fixup
2019-12-05 21:05:03 +01:00
Dani Hodovic
3c2633e33f
Pass all tests
2019-12-05 21:05:03 +01:00
Dani Hodovic
38bed227c6
fixup
2019-12-05 21:05:03 +01:00
Dani Hodovic
9ece4ed8ad
ensure absolute paths for dvc files work but not for git
2019-12-05 21:05:02 +01:00
Dani Hodovic
ed10497854
Remove unused var
2019-12-05 21:05:02 +01:00
Dani Hodovic
cadbf10e64
dont use absolute paths in tests
2019-12-05 21:05:02 +01:00
Dani Hodovic
74f3851117
Disallow absolute paths in dvc get
2019-12-05 21:05:02 +01:00
Dani Hodovic
7e1423d13c
fix tests
2019-12-05 21:05:01 +01:00
Dani Hodovic
8c3ffe816d
fixup! Make tree.walk() output deterministic
2019-12-05 21:05:01 +01:00
Dani Hodovic
97862a3d5f
Make tree.walk() output deterministic
2019-12-05 21:05:01 +01:00
Dani Hodovic
4d14256995
fixup! get: copy regular files
2019-12-05 21:05:01 +01:00
Dani Hodovic
af2f216c5e
get: copy regular files
...
Allows `dvc get` to copy regular files or directories.
fixes : #2515
2019-12-05 21:05:00 +01:00
Vera Sativa
f7e0b575bd
tests: add download_dir
2019-12-05 16:51:24 -03:00
Ruslan Kuprieiev
73e69be067
Merge pull request #2882 from Suor/revert-checkout
...
dvc: revert checkout to be silly and fast, relink on dvc add though
2019-12-05 16:07:52 +02:00
Ruslan Kuprieiev
c328075c8b
Merge pull request #2868 from Suor/better-fixtures
...
test: refactor tmp dir helper fixtures
2019-12-05 16:00:37 +02:00
Ruslan Kuprieiev
57b0596bfe
state: quote % in path
...
Fixes #2885
2019-12-05 15:25:21 +02:00
Mr. Outis
71ead3f62e
analytics: use a tempfile for inter-process communication
2019-12-04 19:47:06 -06:00
Mr. Outis
05a68684fd
tests: isolate global config from analytics tests
...
fix #2806
2019-12-04 19:44:12 -06:00
Mr. Outis
7a3aae1c7e
tests: add unit test for analytics.system_info
2019-12-04 19:43:00 -06:00
Tymoteusz Jankowski
128f60ef68
Add test_dagascii.py + make find_pager() use DVC_PAGER
2019-12-04 20:51:24 +01:00
Tymoteusz Jankowski
c864ca9384
Move is_exec_found(..) to dvc/dagascii.py
2019-12-04 20:15:49 +01:00
pawel
ca852170c1
get: test: from non-dvc master: refactor
2019-12-04 14:34:50 +01:00
Paweł Redzyński
f1d59dd64d
conftest: empty dir is tmp_path now
2019-12-04 13:10:06 +01:00
pawel
5e5c82652b
test: get: inline erepo with non-dvc master
2019-12-04 13:10:06 +01:00
Paweł Redzyński
5c0c4239ec
rename TestDirFixtureBase
2019-12-04 13:10:06 +01:00
Paweł Redzyński
b9d5933f5d
external repo: checkout rev before initializing repo
2019-12-04 13:10:06 +01:00
Paweł Redzyński
b788a991f9
conftest: create empty dir fixture
2019-12-04 13:10:06 +01:00
Paweł Redzyński
06d6c2c25c
test env: extract empty dir fixture to class
2019-12-04 13:10:06 +01:00
Mr. Outis
285620d96e
tests: mock analytics.collect while testing daemon
2019-12-03 09:41:23 -06:00
Mr. Outis
8a32b28b54
analytics: collect and send on daemon
2019-12-02 22:54:16 -06:00
Mr. Outis
8b5ca253ec
analytics: move report schema to tests
2019-12-02 22:48:09 -06:00
Mr. Outis
e0d47a1382
💅 formatting
2019-12-02 21:57:06 -06:00
Mr. Outis
ca485db240
analytics: define report schema and use it on tests
2019-12-02 21:52:00 -06:00
Mr. Outis
2c8e1495b8
analytics: use fspath instead of str
2019-12-02 21:27:31 -06:00
Mr. Outis
55960154c5
analytics: document why tmp_global_config is needed
2019-12-02 17:51:35 -06:00
Mr. Outis
946dfc1400
analytics: send report without loading it to memory
...
shout-out to @Suor for the suggestion
2019-12-02 17:51:32 -06:00
c27988a042
test: minor fixture refactor fixes from @pared and @efiop
...
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
Co-Authored-By: Paweł Redzyński <[email protected] >
2019-12-02 23:33:44 +01:00
Alexander Schepanovski
0385810662
test: fix python 2, 3.5 and mac issues with new fixtures
2019-12-02 23:32:11 +01:00
Alexander Schepanovski
fcebad821e
test: refactor tmp dir helper fixtures
...
- `tmp_dir` descends from Path
- convenient template methods to generate files and dirs, add them to
dvc and git and commit to git
- independent of old basic_env structures
- can go in any order
- modular: start with empty `tmp_dir`, initialize git with `scm`, dvc
repo with `dvc` add "repo template" with `repo_template`, ...
2019-12-02 23:31:54 +01:00
Alexander Schepanovski
d1cf770a3c
dvc: don't make an unneeded copy on commit
...
Fix #2016 without all the complications of #2358 .
2019-12-02 23:08:45 +01:00
Tymoteusz Jankowski
ab3ccf0243
Use os.devnull + do not check if system exists for os module
2019-12-02 20:27:20 +01:00
Alexander Schepanovski
4ab4e43606
dvc: return to using .changed() shortcut in .checkout()
2019-12-02 14:38:39 +01:00
Tymoteusz Jankowski
f79711d155
Fix code checks
2019-12-01 19:48:56 +01:00