mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
💅 deepsource
This commit is contained in:
+1
-2
@@ -3,7 +3,6 @@ import logging
|
||||
import platform
|
||||
import requests
|
||||
import sys
|
||||
import tempfile
|
||||
import uuid
|
||||
import errno
|
||||
|
||||
@@ -124,4 +123,4 @@ def find_or_create_user_id():
|
||||
return user_id
|
||||
|
||||
except LockError:
|
||||
logger.debug("Failed to acquire {lock}".format(lockfile))
|
||||
logger.debug("Failed to acquire {lockfile}".format(lockfile=lockfile))
|
||||
|
||||
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
||||
|
||||
import logging
|
||||
import json
|
||||
import tempfile
|
||||
|
||||
from dvc import analytics
|
||||
from dvc.cli import parse_args
|
||||
|
||||
@@ -8,9 +8,9 @@ from dvc import analytics
|
||||
def test_collect():
|
||||
report = analytics.collect(return_code=0)
|
||||
|
||||
assert report["cmd_class"] == None
|
||||
assert report["cmd_return_code"] == 0
|
||||
assert report["scm_class"] in ["Git", None]
|
||||
assert not report["cmd_class"]
|
||||
assert type(report["is_binary"]) is bool
|
||||
assert type(report["system_info"]) is dict
|
||||
assert type(report["dvc_version"]) is str
|
||||
|
||||
Reference in New Issue
Block a user