skshetry
dc13186759
analytics: send remote types and git-remote's path hashes ( #10816 )
2025-07-28 15:07:41 +05:45
Ruslan Kuprieiev
c827654fe7
tests: use mocker instead of unittest.mock where possible
...
Had the "pleasure" of finding a mocker.patch leak into other tests and one
of the suspicions is that mixing unittest.mock and mocker might be somehow
related.
In any case, we should use mocker where possible anyway.
2023-06-18 17:10:45 +03:00
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
skshetry
7ab4c59d70
test: run pytest-style checks ( #8901 )
2023-01-28 14:10:53 +05:45
Saugat Pachhai (सौगात)
1cad8ea7fd
migrate test_{add,analytics,init,unprotect,local,process}.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
f5baf990cf
cli: refactor into a module
...
By splitting dvc.cli into a module, we'll be able to share cli-related
utilities, split parser-related stuffs into smaller parts, improve
reusability and improve API for command extensions in the future.
2022-01-19 12:22:07 +02:00
Saugat Pachhai (सौगात)
cb941a836d
tests: cover exp init
2021-11-19 18:58:23 +05:45
Nikita Kodenko
696c704632
tests: replace several unittest.mock usages with mocker ( #6544 )
...
* tests: several unittest.mock usages replaced with mocker
* tests: fixes in tests/unit/repo/test_reproduce.py
* tests: rolled back WiP tests
2021-09-17 18:22:34 +03:00
Saugat Pachhai
fb96b13f13
Fix issue while sending analytics report ( #6407 )
...
* demonstrate issue while sending analytics report
When sending analytics, we are not flushing the data to the temp file
which causes failure at times, especially on Windows
* close file before calling daemonized analytics send command
This way, the contents bufferred will get a chance to be flushed.
2021-08-10 16:07:46 +03:00
Christian Clauss
d8b67f6f78
Upgrade to modern Python syntax ( #6296 )
2021-07-19 01:30:37 +03:00
Peter Rowlands (변기호)
833e82a7ea
Drop Python 3.5 support ( #3792 )
...
* drop python 3.5 support
* dvc: remove fspath() use inside os.path calls
* dvc: replace dvc.compat.fspath with os.fspath
* tests: replace dvc.compat.fspath with os.fspath
* utils: relpath() should use fspath/str
* utils: os.readlink doesn't support path-like obj on Windows until 3.8
2020-05-14 01:46:42 +03:00
Casper da Costa-Luis
2bb7257a06
lint: isort pre-commit & misc improvements ( #3749 )
...
* test: clean flake8 config root clutter
* test: pre-commit: add isort
Compatible with black (see https://github.com/timothycrosley/isort/issues/694 )
* lint: reorder imports
* lint: more complex imports
* lint: fix deepsource
* config: isort: add first party dvc
* tests: restyled: add isort
* temp commit to revert before merge
* Revert "temp commit to revert before merge"
This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
2020-05-06 23:56:07 +03:00
Paweł Redzyński
a9bc65ee1f
analytics: fix resolving used scm ( #3405 )
2020-02-26 02:29:46 +02:00
Mr. Outis
086acf6404
py3: dvc/utils/compat.py -> dvc/compat.py
2019-12-31 23:42:07 -06:00
Mr. Outis
f209e1eb6f
tests/analytics: explicitly set content for foo
2019-12-15 13:11:40 -06:00
Mr. Outis
7426a62baa
tests: analytics, use dir helpers
2019-12-12 18:16:10 -06:00
Mr. Outis
5dd6300878
💅 black
2019-12-07 21:19:54 -06:00
Mr. Outis
c50bd17bb4
analytics: collect execution info only when available
2019-12-07 21:14:31 -06:00
Mr. Outis
2145daa130
analytics: define private methods
2019-12-06 16:26:10 -06:00
Mr. Outis
da064e2ede
analytics: remove the report after sending it
2019-12-06 12:28:06 -06:00
Mr. Outis
71ead3f62e
analytics: use a tempfile for inter-process communication
2019-12-04 19:47:06 -06: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
2c8e1495b8
analytics: use fspath instead of str
2019-12-02 21:27:31 -06:00
Mr. Outis
e69fffa7c7
py2 compat issues 🤷
2019-11-27 18:39:01 -06:00
Mr. Outis
f9952046fd
tests: functional and unit tests for analytics
2019-11-26 19:29:20 -06:00
Mr. Outis
6bc24039db
💅 black
2019-11-26 18:33:16 -06:00
Mr. Outis
5261ed7148
tests: analytics.find_or_create_user_id
2019-11-26 13:40:11 -06:00
Mr. Outis
ef1f038c32
analytics: refactor into a module
2019-11-20 13:31:44 -06:00
Ruslan Kuprieiev
1058df0f77
analytics: don't forget to convert to bool
2019-11-08 05:21:47 +02:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
6f11f1f51f
test: move func tests to tests/func
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-04-16 20:19:22 +03:00